Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Fix issues with chunk hashes #89

Merged
merged 2 commits into from
Feb 2, 2018
Merged

Fix issues with chunk hashes #89

merged 2 commits into from
Feb 2, 2018

Conversation

baldurh
Copy link
Contributor

@baldurh baldurh commented Jan 31, 2018

Updates ExtractTextWebpackPlugin and ExtractCSSWebpackChunks because of an issue with css style ordering, which resulted in a new hash being generated for every css chunk. See: webpack-contrib/extract-text-webpack-plugin#548 and faceyspacey/extract-css-chunks-webpack-plugin#41

Also adds some plugins to better handle chunk hashes when stuff changes.

The only remaining issue is that bootstrap-[contenthash].js changes whenever some other file changes even though nothing changes in the bootstrap file. We have the manifest array normally in the bootstrap file (emitted js files) inline in the html. There’s a plugin that extracts it from the bootstrap file and removes it. But the hash is generated before this happens.

We could remove the hash from the bootstrap file but if the webpack bootstrap code changes we could run into caching problems. But this should only happen if we update webpack and it has changed the bootstrap code.

@birkir birkir temporarily deployed to starter-kit-universally-pr-89 January 31, 2018 10:05 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants