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

Webpack [hash] differs on different computers #251

Open
dmitry opened this issue Sep 28, 2015 · 4 comments
Open

Webpack [hash] differs on different computers #251

dmitry opened this issue Sep 28, 2015 · 4 comments

Comments

@dmitry
Copy link

dmitry commented Sep 28, 2015

Once I run npm run build on different computers I'm getting different hash, because source map loader is generating js files depending on hash name used for source map files:

screenshot-41

Lets disable source map using setting devtool to null (devtool: null):

screenshot-43

Now you can see the files are all the same, but the hash generated differently on different computers.

Because we have multiple application servers which are response through load-balancer, and we are not sending our assets to any CDN, we are getting into a trouble, because assets names are not the same.

  • Any ideas why is that happen?
  • How do the webpack generates [hash]?
@erikras
Copy link
Owner

erikras commented Sep 28, 2015

How bizarre. @halt-hammerzeit?

@catamphetamine
Copy link
Contributor

@dmitry So, why did you create an issue in this repo? You should create it in Webpack repo because I don't see how can it possibly relate to react-redux-universal-hot-example
https://github.com/webpack/webpack

@dmitry
Copy link
Author

dmitry commented Sep 28, 2015

First of all I found an issue with the react-redux-universal-hot-example, then I've digged deeper to webpack, now I think it's related to the different absolute paths, because once I'm changing the root path of the project path from a to b it generates different hash. Basically, now I'm out of ideas what is causing that.

Can we leave this issue open, could be someone faced with the same problem.

@catamphetamine
Copy link
Contributor

@erikras FYI
webpack/webpack#1479

waskito pushed a commit to waskito/react-redux-universal-hot-example that referenced this issue May 23, 2017
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