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