Сконфигурировал TerserPlugin

This commit is contained in:
Book Pauk
2019-03-16 01:52:51 +07:00
parent 5a0d98cbd0
commit dca12b6467

View File

@@ -32,7 +32,15 @@ module.exports = merge(baseWpConfig, {
}, },
optimization: { optimization: {
minimizer: [ minimizer: [
new TerserPlugin(), new TerserPlugin({
cache: true,
parallel: true,
terserOptions: {
output: {
comments: false,
},
},
}),
new OptimizeCSSAssetsPlugin() new OptimizeCSSAssetsPlugin()
] ]
}, },