From 666410b6531e911b2b3973c9364674795cd80142 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Mon, 30 Dec 2019 14:01:27 +0100 Subject: [PATCH] Don't clean gitignore --- webpack.common.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: {