Skip to content
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

Update webpack chunk-hash-generation settings #1263

Merged
merged 1 commit into from
Jan 13, 2021
Merged

Conversation

jameshadfield
Copy link
Member

This removes HashedModuleIdsPlugin from the build pipeline as
we use WebpackChunkHash to generate contenthash for each chunk.

This caused hard-to-debug bugs in auspice (and nextstrain.org)
where a hash was being generated from the pre-minified (etc)
bundle contents, but different minification resulted in different
bundle contents. As the bundle name was the same, clients could
use their (out-of-date) cached version, which would result in
a variety of errors in auspice.

This removes `HashedModuleIdsPlugin` from the build pipeline as
we use `WebpackChunkHash` to generate contenthash for each chunk.

This caused hard-to-debug bugs in auspice (and nextstrain.org)
where a hash was being generated from the pre-minified (etc)
bundle contents, but different minification resulted in different
bundle contents. As the bundle name was the same, clients could
use their (out-of-date) cached version, which would result in
a variety of errors in auspice.
@jameshadfield jameshadfield temporarily deployed to auspice-webpack-hash-jfcwfc7kn January 13, 2021 19:14 Inactive
@jameshadfield jameshadfield merged commit bd2401f into master Jan 13, 2021
@jameshadfield jameshadfield deleted the webpack-hash branch January 13, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant