File tree 2 files changed +2
-20
lines changed
2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ const webpack = require('webpack')
3
3
const vueConfig = require ( './vue-loader.config' )
4
4
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' )
5
5
const FriendlyErrorsPlugin = require ( 'friendly-errors-webpack-plugin' )
6
- const UglifyJsPlugin = require ( 'uglifyjs-webpack-plugin' )
7
6
8
7
const isProd = process . env . NODE_ENV === 'production'
9
8
10
- const config = {
9
+ module . exports = {
11
10
devtool : isProd
12
11
? false
13
12
: '#cheap-module-source-map' ,
@@ -69,20 +68,4 @@ const config = {
69
68
: [
70
69
new FriendlyErrorsPlugin ( )
71
70
]
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
+ }
Original file line number Diff line number Diff line change 44
44
"stylus" : " ^0.54.5" ,
45
45
"stylus-loader" : " ^3.0.1" ,
46
46
"sw-precache-webpack-plugin" : " ^0.11.4" ,
47
- "uglifyjs-webpack-plugin" : " ^1.2.2" ,
48
47
"url-loader" : " ^0.6.2" ,
49
48
"vue-loader" : " ^14.1.1" ,
50
49
"vue-style-loader" : " ^4.0.2" ,
You can’t perform that action at this time.
0 commit comments