Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webpack: Fix CSS source map generation on 1-CPU systems.

Anders Kaseorgaedc5af35109
diff --git a/webpack.config.ts b/webpack.config.ts
index a7915453eb8..a5a64da41dd 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -189,7 +189,11 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
const out = new CleanCSS({sourceMap: true}).minify({
[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({