Skip to content

Commit d3ae6fb

Browse files
committed
fix: inspect the cause of higher memory requirement in prod build creation #1243
1 parent ce87406 commit d3ae6fb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

admin-ui/build/webpack.config.client.prod.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@ module.exports = {
2828
chunks: 'all'
2929
},
3030
minimizer: [`...`,
31-
new CssMinimizerPlugin(),
31+
new CssMinimizerPlugin({
32+
minimizerOptions: {
33+
preset: [
34+
"default",
35+
{
36+
calc: false,
37+
discardComments: { removeAll: true },
38+
},
39+
],
40+
},
41+
}),
3242
`...`]
3343
},
3444
output: {

0 commit comments

Comments
 (0)