CleanWebpackPlugin has changed how it accepts configuration options (#169)

resolves #167
This commit is contained in:
Kevin Collas-Arundell 2019-03-28 16:01:31 +11:00 committed by Shawn Erquhart
parent e029d85a81
commit d175d880e0
1 changed files with 6 additions and 1 deletions

View File

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