erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
11.99k stars 2.5k forks source link

Webpack [hash] differs on different computers #251

Open dmitry opened 9 years ago

dmitry commented 9 years ago

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.

erikras commented 9 years ago

How bizarre. @halt-hammerzeit?

catamphetamine commented 9 years ago

@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 commented 9 years ago

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 commented 9 years ago

@erikras FYI https://github.com/webpack/webpack/issues/1479