We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5407751 commit 256f679Copy full SHA for 256f679
2 files changed
config/config.js
@@ -15,7 +15,10 @@ exports.config = {
15
check: false
16
},
17
loaders: {},
18
- plugins: {}
+ plugins: {},
19
+ optimization: {
20
+ minimize: false
21
+ }
22
};
23
24
exports.devConfig = {
config/plugin.js
@@ -98,10 +98,14 @@ exports.runtime = {
98
99
100
exports.uglifyJs = {
101
- enable: true,
+ enable() {
102
+ const config = this.config;
103
+ return !(config.optimization && config.optimization.minimize);
104
+ },
105
env: ['prod'],
106
name: 'uglifyjs-webpack-plugin',
107
args: {
108
+ cache: true,
109
parallel: UGLIFYJS_WORKERS,
110
uglifyOptions: {
111
warnings: false,
0 commit comments