|
@@ -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,
|