Speed up JS build time (#3203)

Also bumping a few related libs
This commit is contained in:
Maxime Beauchemin 2017-07-28 17:34:09 -07:00 committed by GitHub
parent 58a704b84c
commit 219f33f0d1
2 changed files with 11 additions and 12 deletions

View File

@ -18,7 +18,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/airbnb/superset.git"
"url": "git+https://github.com/apache/incubator-superset.git"
},
"keywords": [
"big",
@ -32,11 +32,11 @@
"database",
"flask"
],
"author": "Airbnb",
"author": "Apache",
"bugs": {
"url": "https://github.com/airbnb/superset/issues"
"url": "https://github.com/apache/incubator-superset/issues"
},
"homepage": "https://github.com/airbnb/superset#readme",
"homepage": "http://superset.apache.org/",
"dependencies": {
"@data-ui/event-flow": "0.0.4",
"babel-register": "^6.24.1",
@ -55,7 +55,6 @@
"datatables.net-bs": "^1.10.12",
"immutable": "^3.8.1",
"jquery": "^3.2.1",
"jsdom": "9.12.0",
"lodash.throttle": "^4.1.1",
"moment": "^2.14.1",
"mustache": "^2.2.1",
@ -127,8 +126,8 @@
"transform-loader": "^0.2.3",
"uglifyjs-webpack-plugin": "^0.4.6",
"url-loader": "^0.5.7",
"webpack": "^2.3.3",
"webpack-manifest-plugin": "1.1.0",
"webworkify-webpack": "2.0.4"
"webpack": "^3.4.1",
"webpack-manifest-plugin": "1.2.1",
"webworkify-webpack": "2.0.5"
}
}

View File

@ -130,11 +130,11 @@ if (process.env.NODE_ENV === 'production') {
const UJSplugin = new webpack.optimize.UglifyJsPlugin({
sourceMap: false,
minimize: true,
compress: {
drop_debugger: true,
warnings: false,
drop_console: true,
parallel: {
cache: true,
workers: 4,
},
compress: false,
});
config.plugins.push(UJSplugin);
}