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

Document webpack change: calculate real content hash for assets after asset processing #3917

Closed
webpack-bot opened this issue Aug 19, 2020 · 1 comment · Fixed by #3919
Closed

Comments

@webpack-bot
Copy link

A pull request by @sokra was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#11339


What kind of change does this PR introduce?
feature

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
yes, hash is calculated differently

What needs to be documented once your changes are merged?

  • [contenthash] uses the hash of the content of the asset. This is calculated after assets has been processed.
  • new option optimization.realContentHash (defaults to true in production). Adds an additional hash compilation pass after the assets has been processed to get correct asset content hashes. If disabled, internal data is used to calculate the hash and it can change even when assets are identical.
@jamesgeorge007
Copy link
Member

wip

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 a pull request may close this issue.

2 participants