-
Notifications
You must be signed in to change notification settings - Fork 827
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
CSS with contenthash should not be revisioned #1454
Comments
This is similar to #1102 (comment) I'm happy to leave this open to reinvestigate whether there's a clean solution, but the last time I looked into this, we were blocked because our plugin had no way of knowing about the hashes created by other plugins. |
Looking at the OPs screenshot, I note that a However, if using an abbreviated hash ( // webpack.config.js
output: {
filename: "[name]-[chunkhash:6].js" // e.g. app-a1b2c3.js
} ...a This is because hash detection currently works by looking for 'known hashes' in the webpack compiliation ( If there's no easy solution to the issue underlying problem (such as webpack exposing an e.g.
|
Right, so there are what I think are two different scenarios:
|
C.f. webpack/webpack#9038 |
This will be something you can accomplish in Workbox v5 by passing in a Unfortunately, detecting it automatically without providing that option is not feasible for the v5 timeline. |
This should be addressed by the current Workbox v5.0.0 alpha. |
Library Affected: workbox-sw, workbox-webpack-plugin
Browser & Platform:
"all browsers"
Issue or Feature Request Description:
I am using workbox-webpack-plugin with InjectManifest plugin. I use mini-css-extract-plugin to extract my css into a separate file. For long term caching, I use
contenthash
in my filename but looks like workbox is not able to detect it and creates revision field for it. Thereby, re-downloading the css everytime any of my js changes.The text was updated successfully, but these errors were encountered: