mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Adding missing dependency and linting webpack.js (#3008)
This commit is contained in:
parent
06fcaa3095
commit
4d72afb54b
@ -125,6 +125,7 @@
|
||||
"sinon": "^2.1.0",
|
||||
"style-loader": "^0.18.2",
|
||||
"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",
|
||||
|
@ -125,9 +125,8 @@ const config = {
|
||||
],
|
||||
};
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.plugins.push(
|
||||
// Using settings suggested in https://github.com/webpack/webpack/issues/537
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
const UJSplugin = new webpack.optimize.UglifyJsPlugin({
|
||||
sourceMap: false,
|
||||
minimize: true,
|
||||
compress: {
|
||||
@ -135,7 +134,7 @@ if (process.env.NODE_ENV === 'production') {
|
||||
warnings: false,
|
||||
drop_console: true,
|
||||
},
|
||||
}),
|
||||
);
|
||||
});
|
||||
config.plugins.push(UJSplugin);
|
||||
}
|
||||
module.exports = config;
|
||||
|
Loading…
Reference in New Issue
Block a user