Closed mattradford closed 5 years ago
i use
new CleanWebpackPlugin([
''public/assets/',
'public/vendor/',
'public/images/'
]),
in ur case maybe try
new CleanWebpackPlugin({
verbose: true,
dry: true,
cleanStaleWebpackAssets: false,
protectWebpackAssets: false,
cleanOnceBeforeBuildPatterns: ["public/**/*.css", "public/**/*.js", "!public/**/*.svg"]
})
Would you mind posting a working webpack.mix.js using clean-webpack-plugin? I'm using the following, but no matter what clean webpack options I use, I cannot get just the CSS and JS files to delete before the build runs and creates new compiled assets :(
I appreciate this isn't really an issue on your repo but couldn't find another way to contact.
Thanks :)