Closed Jun711 closed 3 years ago
you should add protectWebpackAssets: false
plugins: [
new CleanWebpackPlugin({
protectWebpackAssets: false,
cleanAfterEveryBuildPatterns: ['*.LICENSE.txt'],
})
],
you should add
protectWebpackAssets: false
plugins: [ new CleanWebpackPlugin({ protectWebpackAssets: false, cleanAfterEveryBuildPatterns: ['*.LICENSE.txt'], }) ],
I see. Thanks.
Issue description or question
I tried to use
cleanAfterEveryBuildPatterns: ['*.LICENSE.txt']
to remove LICENSE.txt files. According to this comment, the person was able to remove the LICENSE.txt files. However, it doesn't seem to work for me.Webpack Config
A minimal repo: https://github.com/Jun711/clean-webpack-test
Environment
Run:
npx envinfo --system --binaries --npmPackages clean-webpack-plugin,webpack