From d175d880e0745827276cf836c43cf86da5bced80 Mon Sep 17 00:00:00 2001 From: Kevin Collas-Arundell Date: Thu, 28 Mar 2019 16:01:31 +1100 Subject: [PATCH] CleanWebpackPlugin has changed how it accepts configuration options (#169) resolves #167 --- webpack.dev.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webpack.dev.js b/webpack.dev.js index 8707ec7..cfa703c 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -26,7 +26,12 @@ module.exports = merge(common, { }, plugins: [ - new CleanWebpackPlugin(["dist/**/*.js", "dist/**/*.css", "site/content/webpack.json"]), + new CleanWebpackPlugin({ + cleanOnceBeforeBuildPatterns: [ + "dist/**/*.js", + "dist/**/*.css", + "site/content/webpack.json" + ]}), new MiniCssExtractPlugin({ filename: "[name].css",