-
-
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
cache does not work in watch mode #133
Comments
I see that record is found in the cache, but a new file is still emitted. So Express.js treats it as a new resource. |
Please create minimum reproducible test repo |
@evilebottnawi Here you go: https://github.com/akosyakov/compression-webpack-with-watch In order to reproduce:
|
@evilebottnawi does it look like an issue? Are you opened to a PR? What would be the proper solution? Skip emitting a new file if an original asset timestamp did not change? |
A lot of issues, you can debug it and send a PR, sorry |
For anyone getting here. A temporary solution, if writing a plugin is a possibility, is to collect and update effectively emitted assets paths on 'compiler.hooks.assetEmitted' hook and passing them to "compression-webpack-plugin" For additional information, please see this comment on relative PR. |
There are several solution:
|
I need a little discussion with @sokra about it, in the near future I will find a solution, sorry for delay |
We are using code splitting in dev (watch) mode in order to avoid redownloading everything on page refresh but only changed bundles. But compression plugin keeps generating new compressed artifacts even for not changed bundles. I've tried to enable caching and it did not have any effect.
The text was updated successfully, but these errors were encountered: