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

What does this do that Webpack doesn't do natively? #8

Open
STRML opened this issue Apr 6, 2017 · 2 comments
Open

What does this do that Webpack doesn't do natively? #8

STRML opened this issue Apr 6, 2017 · 2 comments

Comments

@STRML
Copy link

STRML commented Apr 6, 2017

Webpack allows setting hashFunction, hashDigest, and hashDigestLength in outputOptions and also uses crypto.createHash().

It appears the difference is that this plugin uses the actual contents, not just all the ids included in the file, as webpack/lib/Chunk.js seems to say. Is that correct?

@alexindigo
Copy link
Owner

Yes, this plugin is trying to produce hash as close to the final bundle as it's possible in webpack universe.

@stephan-v
Copy link

not just all the ids included in the file.

This is exactly why this plugin is a bad idea. If you are not getting a new file served to you because your hash did not change but indices within your module have, you are getting mismatches within your manifest.js file.

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

No branches or pull requests

3 participants