Skip to content

Commit 14f2818

Browse files
authored
Merge pull request webpack#6145 from d3viant0ne/d3viant0ne/perf/uglifyPerf
perf: Enables uglify cache in prod mode
2 parents 0968e1c + b319ea6 commit 14f2818

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/WebpackOptionsDefaulter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
140140
// Lazy load the uglifyjs plugin
141141
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
142142
new UglifyJsPlugin({
143+
cache: true,
144+
parallel: true,
143145
sourceMap: options.devtool && /source-?map/.test(options.devtool)
144146
}).apply(compiler);
145147
}

0 commit comments

Comments
 (0)