是否可以在本地和服务器中生成完全相同的输出?我使用相同的Webpack版本,我已删除node_modules并重新安装所有具有完全相同版本的软件包。但是,两者的产出仍然不同。
本地:
Hash: de5e3b914a5511a29229
Version: webpack 3.4.1
Time: 46193ms
Asset Size Chunks Chunk Names
main.js 250 kB 0 [emitted] main
libs.js 602 kB 1 [emitted] [big] libs
[14] ./src/api/browser.js + 1 modules 4.9 kB {0} [built]
[15] ./src/api/crypto.js 5.64 kB {0} [built]
[16] (webpack)/buildin/global.js 509 bytes {1} [built]
[20] ./src/api/numbers.js 2.34 kB {0} [built]
[24] ./src/api/Coins/ETH.js 10 kB {0} [built]
[30] ./src/const/networks.js 47 bytes {0} [built]
[125] multi ./src/index.js 28 bytes {0} [built]
[126] ./src/index.js + 86 modules 522 kB {0} [built]
[203] (webpack)/buildin/module.js 517 bytes {1} [built]
+ 275 hidden modules
服务器:
Hash: e18982fe1592d6f2dccb
Version: webpack 3.4.1
Time: 30644ms
Asset Size Chunks Chunk Names
main.js 250 kB 0 [emitted] main
libs.js 602 kB 1 [emitted] [big] libs
[14] ./src/api/browser.js + 1 modules 4.85 kB {0} [built]
[15] ./src/api/crypto.js 5.64 kB {0} [built]
[16] (webpack)/buildin/global.js 509 bytes {1} [built]
[20] ./src/api/numbers.js 2.34 kB {0} [built]
[24] ./src/api/Coins/ETH.js 9.93 kB {0} [built]
[30] ./src/const/networks.js 47 bytes {0} [built]
[125] multi ./src/index.js 28 bytes {0} [built]
[126] ./src/index.js + 86 modules 509 kB {0} [built]
[203] (webpack)/buildin/module.js 517 bytes {1} [built]
+ 275 hidden modules