Authored by yyq

change uglify

... ... @@ -97,8 +97,6 @@
"stylelint-webpack-plugin": "^0.7.0",
"webpack": "^2.3.1",
"webpack-dev-server": "^2.4.2",
"webpack-uglify-parallel": "^0.1.3",
"yoho-eventproxy": "^0.3.6",
"yoho-handlebars": "^4.0.5",
"yoho-jquery": "^1.12.4",
... ...
... ... @@ -5,7 +5,6 @@ const path = require('path');
const shelljs = require('shelljs');
const _ = require('lodash');
const webpack = require('webpack');
const UglifyJsParallelPlugin = require('webpack-uglify-parallel');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const config = require('../../package.json');
const distDir = path.join(__dirname, `../dist/${config.name}/${config.version}`);
... ... @@ -29,8 +28,11 @@ _.mergeWith(baseConfig, {
NODE_ENV: '"production"'
}
}),
new UglifyJsParallelPlugin({
// new UglifyJsParallelPlugin({
new webpack.optimize.UglifyJsPlugin({
workers: os.cpus().length,
ie8: true,
compress: {
screw_ie8: false,
properties: false,
... ...