Browse Source

fix: webpack clean plugin v2 crash

pull/821/head
Nick 5 years ago
parent
commit
a034295b2c
1 changed files with 1 additions and 9 deletions
  1. 10
      dev/webpack/webpack.prod.js

10
dev/webpack/webpack.prod.js

@ -225,15 +225,7 @@ module.exports = {
new SimpleProgressWebpackPlugin({
format: 'expanded'
}),
new CleanWebpackPlugin([
'assets/js/*.*',
'assets/css/*.*',
'assets/*.js',
'assets/*.json'
], {
root: process.cwd(),
verbose: false
}),
new CleanWebpackPlugin(),
new OptimizeCssAssetsPlugin({
cssProcessorOptions: { discardComments: { removeAll: true } },
canPrint: true

Loading…
Cancel
Save