parent
4c2a3d8df0
commit
2d485730f0
6 changed files with 5 additions and 19 deletions
|
@ -1,8 +1,6 @@
|
|||
import * as webpack from 'webpack';
|
||||
const StringReplacePlugin = require('string-replace-webpack-plugin');
|
||||
|
||||
import constant from './const';
|
||||
import compression from './compression';
|
||||
|
||||
const env = process.env.NODE_ENV;
|
||||
const isProduction = env === 'production';
|
||||
|
@ -14,10 +12,8 @@ export default () => {
|
|||
];
|
||||
|
||||
if (isProduction) {
|
||||
plugins.push(new webpack.optimize.UglifyJsPlugin());
|
||||
//plugins.push(new webpack.optimize.UglifyJsPlugin());
|
||||
}
|
||||
|
||||
plugins.push(compression());
|
||||
|
||||
return plugins;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue