From a034295b2cded28c1d607005ae636dd2f3404694 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 27 Apr 2019 00:28:02 -0400 Subject: [PATCH] fix: webpack clean plugin v2 crash --- dev/webpack/webpack.prod.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dev/webpack/webpack.prod.js b/dev/webpack/webpack.prod.js index 83d304b9..e6ffaa4c 100644 --- a/dev/webpack/webpack.prod.js +++ b/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