mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	Otherwise Bootstrap doesn’t get minified, and also the minification state is incorrectly reflected in the webpack cache. The Terser plugin is used by default; we need to include it explicitly to avoid removing it. Switch from cssnano to clean-css because it’s noticeably faster. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			339 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			339 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module.exports = ({ file }) => ({
 | |
|     parser: file.extname === ".scss" ? "postcss-scss" : false,
 | |
|     plugins: {
 | |
|         // Warning: despite appearances, order is significant
 | |
|         "postcss-nested": {},
 | |
|         "postcss-extend-rule": {},
 | |
|         "postcss-simple-vars": {},
 | |
|         "postcss-calc": {},
 | |
|         autoprefixer: {},
 | |
|     },
 | |
| });
 |