We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing ! before file and / or folder seems not to work. My file & folder is still getting removed after the build succeed.
!
plugins: [ new CleanWebpackPlugin({ protectWebpackAssets: false, cleanAfterEveryBuildPatterns: ['*.LICENSE.txt', '!manifest.json', '!assets/**'] }) ]
System: OS: Windows 10 10.0.22000 CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor Memory: 7.16 GB / 15.44 GB Binaries: Node: 17.1.0 - C:\Program Files\nodejs\node.EXE npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD npmPackages: clean-webpack-plugin: ^4.0.0 => 4.0.0 webpack: ^5.64.1 => 5.64.1
The text was updated successfully, but these errors were encountered:
Add this to the configuration:
cleanOnceBeforeBuildPatterns: [ '**/*', '!manifest.json', '!assets/**' ],
Sorry, something went wrong.
No branches or pull requests
Issue description or question
Writing
!
before file and / or folder seems not to work. My file & folder is still getting removed after the build succeed.Webpack Config
Environment
The text was updated successfully, but these errors were encountered: