fix: webpack clean plugin v2 crash

This commit is contained in:
Nick 2019-04-27 00:28:02 -04:00
parent 75f2f16613
commit a034295b2c

View File

@ -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