Skip to content

Commit bf93a87

Browse files
committed
perf: Enables uglify cache in prod mode
1 parent 0968e1c commit bf93a87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/WebpackOptionsDefaulter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
140140
// Lazy load the uglifyjs plugin
141141
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
142142
new UglifyJsPlugin({
143+
cache: true,
143144
sourceMap: options.devtool && /source-?map/.test(options.devtool)
144145
}).apply(compiler);
145146
}

0 commit comments

Comments
 (0)