Authored by yyq

change uglify

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