diff --git a/webpack.common.js b/webpack.common.js index 9280bef..bc97c44 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -8,7 +8,11 @@ module.exports = { path: path.resolve(__dirname, 'js/dist'), publicPath: 'js/dist/' }, - plugins: [ new CleanWebpackPlugin() ], + plugins: [ + new CleanWebpackPlugin({ + cleanOnceBeforeBuildPatterns: [ '**/*', '!.*' ] + }) + ], optimization: { splitChunks: { cacheGroups: {