I'm trying to debug a cache issue with integrity: true and output.filename = '[name].[contenthash].js', why would setting integrity affect the cache
#108
davidmurdoch
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Forgot to mention this is in production mode. And I just noticed this plugin in In development mode I get a different error: |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@davidmurdoch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I'm not yet sure what the root cause is, so can't provide a useful reproduction just yet (unless you think the entire MetaMask extension codebase would be useful).
The gist of it is that setting
integrity: truewhile usingoutput.filename = '[name].[contenthash].js'(and a whole bunch of other settings, of course) can cause webpack'sRealContentHashPluginto crash, but only inwatchmode after adding a newimportstatement to a JS file.I get dozens of errors like this one:
setting
output.filename = '[name].[contenthash].js'tooutput.filename = '[name].[fullhash].js'does not cause the error. So it seems like there is some complication with having a complex dependency graph (maybe due to circular dependencies), integrity hashing, and[contenthash].Do you have any idea where I should look to further debug this so I can hopefully provide a reasonable reproduction?
Beta Was this translation helpful? Give feedback.
All reactions