Open sirianni opened 5 years ago
@iclanton FYI
@sirianni - Can you share a repro?
If I'm reading this correctly, [hash]
is going to be the chunk hash, but the generated webpack module may be using something different (like a content hash?).
Here is what I'm using for webpack output:
output: {
path: `${__dirname}/dist`,
publicPath: '/',
filename: '[name]-[hash].js',
},
I'm trying to reverse engineer what is happening here. It looks like you are doing everythin correct.
Can you tell me what version of Webpack you are using? Also, do you know what the Module Id is?
Just for kicks, I'm curious to see what the filename ends up as if you set your output settings to:
output: {
path: `${__dirname}/dist`,
publicPath: '/',
filename: '[name]-[chunkhash].js',
},
I am using
SetPublicPathPlugin
with the following configuration:The hash being inserted into the generated webpack module
cc6e266258d04761cb6d
:does not match the hash on the actual javacript bundle
4288b4fe1b87f8361a02
: