-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
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
Bug: deleteOrigianlAssets: true
breaks the build badly...
#390
Comments
I see, I will fix soon |
I think we will need a fix in html-webpack-plugin too, I will investigate tomorrow deeply and provide fixes for html-webpack-plugin too |
You can fix it using |
Any progress on this one? How can I help? |
Still on my roadmap, bug in webpack, I will fix soon |
just a friendly ping |
Yeah, please use |
Bug report
Created an empty
npx create-react-app@latest webpack-compress-test
, added this plugin and broke the build.Looks like
CompressionPlugin
is racing withHtmlWebpackPlugin
and deletes original.js
files too early... beforeHtmlWebpackPlugin
gets a chance to process them.Steps to reproduce:
webpack.config.js
Now modify the
config/webpack.config.js
and enable compression plugin as the last step to compress everything.Actual Behavior
Build fails:
Expected Behavior
Build should succeed with all files being .gzipped
How Do We Reproduce?
See the detailed steps above.
The repo contains broken code: https://github.com/mman/webpack-compress-test
The commit here enables the compression: mman/webpack-compress-test@6ba1e3c
The text was updated successfully, but these errors were encountered: