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
webpack-assets.json
output.clean
Describe the bug webpack-assets.json gets removed if the new output.clean webpack@5 option is used.
To Reproduce Steps to reproduce the behavior:
npm init -y npm i webpack assets-webpack-plugin webpack-cli -D npx webpack --mode production
Expected behavior webpack-assets.json file should be present in the output folder even if webpack configured with clean: true.
clean: true
Webpack Config
const AssetsPlugin = require('assets-webpack-plugin'); const path = require('path'); module.exports = { output: { path: path.resolve(__dirname, 'dist'), clean: true }, plugins: [ new AssetsPlugin({ useCompilerPath: true, }) ] };
Desktop (please complete the following information):
Additional context I found that this is a regression that was introduced in 7.1.0 after fixing #327 via #392 Works fine if downgraded to the 7.0.0
npm i [email protected] -D npx webpack --mode production
The text was updated successfully, but these errors were encountered:
test: integration test for SriPlugin
996a9a6
To allow further refactoring/fixing of ztoben#327 since current solution breaks ztoben#404 and symfony/webpack-encore#969 Resolves: ztoben#392 ztoben#327
I can confirm this.
A hotfix for this is:
const AssetsPlugin = require('assets-webpack-plugin'); const path = require('path'); module.exports = { output: { path: path.resolve(__dirname, 'dist'), clean: { keep: /webpack-assets\.json/ } }, plugins: [ new AssetsPlugin({ useCompilerPath: true, }) ] };
Sorry, something went wrong.
95483b0
No branches or pull requests
Describe the bug
webpack-assets.json
gets removed if the new output.clean webpack@5 option is used.To Reproduce
Steps to reproduce the behavior:
Expected behavior
webpack-assets.json
file should be present in the output folder even if webpack configured withclean: true
.Webpack Config
Desktop (please complete the following information):
Additional context
I found that this is a regression that was introduced in 7.1.0 after fixing #327 via #392
Works fine if downgraded to the 7.0.0
The text was updated successfully, but these errors were encountered: