Hello Everyone,
I have a React project on a private Git Repository.
If I clone the source code on my laptop and run npm run build
I get a list of file like the example below:
345.32 KB build\static\js\vendor.js
95.31 KB build\static\js\services-test.js
93.54 KB build\static\js\cross.js
24.11 KB build\static\js\main.js
23.96 KB build\static\css\styles.css
22.03 KB build\static\js\a.js
7.27 KB build\static\js\b.js
7.12 KB build\static\js\c.js
7.1 KB build\static\js\d.js
893 B build\static\js\manifest.js
If I try to build the same exact code in another machine (it's a docker machine in this case) I get one more file (services-react.js):
345.32 KB build\static\js\vendor.js
95.31 KB build\static\js\services-test.js
93.54 KB build\static\js\cross.js
24.11 KB build\static\js\main.js
23.96 KB build\static\css\styles.css
13.97 KB build/static/js/services-react.js
22.03 KB build\static\js\a.js
7.27 KB build\static\js\b.js
7.12 KB build\static\js\c.js
7.1 KB build\static\js\d.js
893 B build\static\js\manifest.js
I know webpack do part of the job but I don't understand why this may happen.
I checked the node and npm version on both machines and they are the same. The only difference is the Operating System (Windows 10 in the first case).
Any idea on how to find why this is happening?
EDIT: as far as I can see, if i do the build on linux, the services-react.js file is generated. If I build on Windows, it isn't.
Top comments (0)