CleanWebpackPlugin has changed how it accepts configuration options (#169)
resolves #167
This commit is contained in:
parent
e029d85a81
commit
d175d880e0
|
@ -26,7 +26,12 @@ module.exports = merge(common, {
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(["dist/**/*.js", "dist/**/*.css", "site/content/webpack.json"]),
|
new CleanWebpackPlugin({
|
||||||
|
cleanOnceBeforeBuildPatterns: [
|
||||||
|
"dist/**/*.js",
|
||||||
|
"dist/**/*.css",
|
||||||
|
"site/content/webpack.json"
|
||||||
|
]}),
|
||||||
|
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: "[name].css",
|
filename: "[name].css",
|
||||||
|
|
Reference in New Issue