Skip to content

Commit 09ee93f

Browse files
committed
feat(terser): enable cache and parallelism
1 parent 70f47f6 commit 09ee93f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/plugins/terser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const applyOptionsCallback = require('../utils/apply-options-callback');
1818
*/
1919
module.exports = function(webpackConfig) {
2020
const terserPluginOptions = {
21-
sourceMap: webpackConfig.useSourceMaps
21+
sourceMap: webpackConfig.useSourceMaps,
22+
cache: true,
23+
parallel: true,
2224
};
2325

2426
return new TerserPlugin(

0 commit comments

Comments
 (0)