-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Same bundle hash for modified content across two builds #459
Comments
@otbe what command/flags are you using to build the app? |
Only the default ones. A simple preact build (or npm run build) leads to this error. |
preact-cli version? |
2.1.0 (installed today :)) There is a test repo: https://github.com/otbe/preact-cli-test
Note the hash from
On my machine I get the same hashes for both builds. :/ |
checking now |
wow this actually is a bug. how is this never caught before is amazing! |
Found the culprit: alexindigo/webpack-chunk-hash#15 |
Thanks for pointing this our @otbe! Looks like it was affecting my builds too. 👎 For auto-resolving semver dependencies, haha. I'll try to send in a fix now. |
Thanks for the fast fix! Works for me 👍 |
Do you want to request a feature or report a bug?
Bug
What is the current behaviour?
I get stable hashes for my bundle.js across multiple builds with modified files.
If the current behaviour is a bug, please provide the steps to reproduce.
Create a new project via preact-cli (default template) build it, add something in app.js and rebuild it.
Both artifact versions (bundle.js) get the same hash which breaks distributing via CDN.
What is the expected behaviour?
The second run should generate a different hash. I don’t tried the same thing with the style.css bundle. Maybe it’s the same thing.
Please mention other relevant information.
P.S.: besides this I’m in love with this cli. Everything works OOTB or can be added via plugin or a small configuration. Great work!
The text was updated successfully, but these errors were encountered: