Skip to content

Commit ec76bd6

Browse files
committed
Remove legacy minification webpack plugin
1 parent 1f6bbc8 commit ec76bd6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tasks/webpack.config.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const publicPath = config.browserSync.proxy.target
1212

1313
const webpackConfig = {
1414
mode: mode.production ? 'production' : 'development',
15+
optimization: {
16+
minimize: mode.production
17+
},
1518
context: JS_DEV,
1619
entry: {
1720
app: [
@@ -51,16 +54,9 @@ const webpackConfig = {
5154
plugins: [],
5255
};
5356

54-
/**
55-
* Modify webpackConfig depends on mode
56-
*/
57+
/** Modifies webpackConfig depends on mode. */
5758
if (mode.production) {
5859
webpackConfig.plugins.push(
59-
new webpack.optimize.UglifyJsPlugin({
60-
compress: {
61-
warnings: false,
62-
},
63-
}),
6460
new webpack.NoEmitOnErrorsPlugin(),
6561
);
6662
} else {

0 commit comments

Comments
 (0)