Skip to content

Commit 8c5de7b

Browse files
authored
frontend: Do not extract comments in separate files on release. (#156)
1 parent 30c19e4 commit 8c5de7b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/webpack.prod.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ const TerserJSPlugin = require('terser-webpack-plugin');
66
module.exports = merge(common, {
77
mode: 'production',
88
optimization: {
9-
minimizer: [new TerserJSPlugin({}), new OptimizeCSSAssetsPlugin({})],
9+
minimizer: [
10+
new TerserJSPlugin({
11+
extractComments: false,
12+
}),
13+
new OptimizeCSSAssetsPlugin({})
14+
],
1015
},
1116
});

0 commit comments

Comments
 (0)