mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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>
(cherry picked from commit aedc5af351
)
This commit is contained in:
committed by
Tim Abbott
parent
21cedabbdf
commit
b596cd7607
@@ -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