我正在使用webpack开发JS应用程序。 但是,当我们的团队使用Ubuntu服务器编译(webpack)应用程序时。生成的文件具有与MacOS本地开发者不同的文件大小。
可能的根本原因是什么?
./node_modules/webpack/bin/webpack.js
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
...
externals: externalLibs,
...
"dependencies": {
"@types/axios": "^0.14.0",
"@types/es6-shim": "^0.31.33",
"@types/immutable": "^3.8.7",
"@types/mathjs": "0.0.34",
"@types/node-uuid": "0.0.28",
"@types/react": "^15.0.25",
"@types/react-dom": "^15.5.0",
"@types/react-redux": "^4.4.40",
"@types/redux-logger": "^3.0.0",
"axios": "^0.16.2",
"es6-shim": "^0.35.3",
"node-uuid": "^1.4.8",
"react-redux": "^5.0.5",
"redux": "^3.6.0",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"awesome-typescript-loader": "^3.1.3",
"css-loader": "^0.28.4",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.1",
"node-sass": "^4.5.3",
"sass-loader": "^6.0.5",
"source-map-loader": "^0.2.1",
"style-loader": "^0.18.1",
"ts-loader": "^2.1.0",
"ts-node": "^3.0.4",
"typescript": "^2.3.4",
"typings": "^2.1.1",
"url-loader": "^0.5.8",
"webpack": "^3.3.0",
"webpack-dev-server": "^2.4.5"
}