Skip to content

Commit b4b2e33

Browse files
committed
remove uglifyjs webpack plugin
1 parent a34dabe commit b4b2e33

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

Diff for: build/webpack.base.config.js

+2-19
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ const webpack = require('webpack')
33
const vueConfig = require('./vue-loader.config')
44
const ExtractTextPlugin = require('extract-text-webpack-plugin')
55
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
6-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
76

87
const isProd = process.env.NODE_ENV === 'production'
98

10-
const config = {
9+
module.exports = {
1110
devtool: isProd
1211
? false
1312
: '#cheap-module-source-map',
@@ -69,20 +68,4 @@ const config = {
6968
: [
7069
new FriendlyErrorsPlugin()
7170
]
72-
}
73-
74-
if(isProd) config.optimization = {
75-
...config.optimization,
76-
minimizer: [
77-
new UglifyJsPlugin({
78-
sourceMap: true,
79-
uglifyOptions: {
80-
compress: {
81-
inline: false,
82-
},
83-
},
84-
}),
85-
],
86-
}
87-
88-
module.exports = config
71+
}

Diff for: package.json

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"stylus": "^0.54.5",
4545
"stylus-loader": "^3.0.1",
4646
"sw-precache-webpack-plugin": "^0.11.4",
47-
"uglifyjs-webpack-plugin": "^1.2.2",
4847
"url-loader": "^0.6.2",
4948
"vue-loader": "^14.1.1",
5049
"vue-style-loader": "^4.0.2",

0 commit comments

Comments
 (0)