Hash is differently generated on different computers.
I’ve tried without image optimizations and source map.
More details on this issue:
erikras/react-redux-universal-hot-example#251
Hash is differently generated on different computers.
I’ve tried without image optimizations and source map.
More details on this issue:
erikras/react-redux-universal-hot-example#251
Comments are closed.
Copyright © 2021 Fantas...hit
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
I also have this problem and have spent hours trying to figure out the problem. See here.
What I can tell is it’s not machine specific per se as I can reproduce it locally by moving my project into 2 different folders.
Effectively, my issue is that we’re adding in absolute paths to
includePaths
in thestyle-loader
, which ultimately generates different JS output. These paths actually get stripped on uglification, so the resulting JS between 2 builds is the same, however the hashing happens before uglification, so any dead code optimizations that remove these differences don’t affect the final chunkhash.I’m unable to get this working with the
webpack-md5-hash
plugin at all, I still get different hash names on my files for the same JS.Furthermore if you use the CommonChunks plugin, webpack seems to reference chunks using these chunkhashes, so the actual common.js file generated is different for the 2 builds, even though the actual entries themselves are the same.
This feels like a fundamental issue with the way webpack generates its hashes. They’re somehow generated high up in the compilation chain, based on the JS generated after modules are bundled up, which may or may not (depending on loaders etc) include path specific information. This, thus can make the actual JS output different, which obviously generates a different chunkhash.
I’m pretty much out of ideas at this point, it just seems like a failing in the underlying compilation mechanism. I don’t think its a stretch to expect consistent hashing of files no matter where the files are compiled.
Same here – I’m on 1.12.9. Hash appears consistent between different Windows 7 workstations, but when built on a Red Hat box under Jenkins we get a different hash. We’re not loading CSS either, and webpack-md5-hash shows the same problem.
@jhnns thanks for digging deeper. Here is my changes https://github.com/dmitry/webpack-hash-test, when hashes DO change if the path outside webpack’s context change.
webpack 1.13.3
ubuntu 14.04
node 4.1.0
npm 2.14.3
Yes, this is still an issue. The same problem is happening for our team. We deploy the same web application across multiple UI servers, and the assets built on one of them is named differently from the others for some unknown reason, even when using
[contenthash]
. We’re hoping that the Git revision plugin @aguynamedben referred to solves the problem for us.Issue was closed because of inactivity.
If you think this is still a valid issue, please file a new issue with additional information.