Skip to content

Commit cd5d3eb

Browse files
committed
fix: Use Babili instead of UglifyJS
1 parent 23bfc37 commit cd5d3eb

File tree

3 files changed

+262
-7
lines changed

3 files changed

+262
-7
lines changed

package-lock.json

Lines changed: 259 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"babel-preset-es2015": "^6.24.1",
6262
"babel-preset-stage-0": "^6.24.1",
6363
"babel-register": "^6.24.1",
64+
"babili-webpack-plugin": "^0.1.2",
6465
"copy-webpack-plugin": "^4.0.1",
6566
"css-loader": "^0.28.4",
6667
"eslint": "^4.4.0",
@@ -93,7 +94,6 @@
9394
"style-loader": "^0.18.2",
9495
"stylelint": "^8.0.0",
9596
"stylelint-config-standard": "^17.0.0",
96-
"uglifyjs-webpack-plugin": "^0.4.6",
9797
"validate-commit-msg": "^2.14.0",
9898
"webpack": "^3.4.1",
9999
"webpack-dev-middleware": "^1.12.0",

webpack/plugins.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
33
const HtmlWebpackPlugin = require('html-webpack-plugin');
44
const SplitByPathPlugin = require('webpack-split-by-path');
55
const CopyWebpackPlugin = require('copy-webpack-plugin');
6-
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
6+
const BabiliPlugin = require("babili-webpack-plugin");
77
const path = require('path');
88

99
const { NODE_ENV } = process.env;
@@ -38,11 +38,7 @@ const plugins = [
3838

3939
if (NODE_ENV === 'production') {
4040
plugins.push(
41-
new UglifyJSPlugin({
42-
compress: {
43-
warnings: false
44-
}
45-
})
41+
new BabiliPlugin()
4642
);
4743
}
4844

0 commit comments

Comments
 (0)