mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	webpack: Fix CSS source map generation on 1-CPU systems.
We were passing a SourceMapGenerator as `map`, but it seems that css-minimizer-webpack-plugin expects a string, and only implicitly stringifies it when running with parallelism. Fixes #18727. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Anders Kaseorg
					
				
			
			
				
	
			
			
			
						parent
						
							721546dfc0
						
					
				
				
					commit
					aedc5af351
				
			@@ -189,7 +189,11 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
 | 
				
			|||||||
                        const out = new CleanCSS({sourceMap: true}).minify({
 | 
					                        const out = new CleanCSS({sourceMap: true}).minify({
 | 
				
			||||||
                            [filename]: {styles, sourceMap},
 | 
					                            [filename]: {styles, sourceMap},
 | 
				
			||||||
                        });
 | 
					                        });
 | 
				
			||||||
                        return {css: out.styles, map: out.sourceMap, warnings: out.warnings};
 | 
					                        return {
 | 
				
			||||||
 | 
					                            css: out.styles,
 | 
				
			||||||
 | 
					                            map: out.sourceMap.toString(),
 | 
				
			||||||
 | 
					                            warnings: out.warnings,
 | 
				
			||||||
 | 
					                        };
 | 
				
			||||||
                    },
 | 
					                    },
 | 
				
			||||||
                }),
 | 
					                }),
 | 
				
			||||||
                new TerserPlugin({
 | 
					                new TerserPlugin({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user