This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree 2 files changed +8
-14
lines changed
2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " material-components-vue" ,
3
- "version" : " 0.0.35 " ,
3
+ "version" : " 0.0.36 " ,
4
4
"description" : " material-components-web with vuejs" ,
5
5
"author" : " Mats Pfeiffer" ,
6
6
"license" : " MIT" ,
33
33
"optimize-css-assets-webpack-plugin" : " ^3.2.0" ,
34
34
"sass-loader" : " ^6.0.6" ,
35
35
"style-loader" : " ^0.19.0" ,
36
+ "uglifyjs-webpack-plugin" : " ^0.4.6" ,
36
37
"vue-loader" : " ^13.0.5" ,
37
38
"vue-template-compiler" : " ^2.4.4" ,
38
39
"webpack" : " ^3.6.0"
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ const path = require('path')
2
2
const Webpack = require ( 'webpack' )
3
3
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' )
4
4
const OptimizeCssAssetsPlugin = require ( 'optimize-css-assets-webpack-plugin' )
5
+ const UglifyJSPlugin = require ( 'uglifyjs-webpack-plugin' )
6
+
5
7
6
8
const root = path . join ( __dirname )
7
9
const src = path . join ( root + '/src/' )
@@ -64,18 +66,9 @@ module.exports.plugins = [
64
66
} ) ,
65
67
new OptimizeCssAssetsPlugin ( ) ,
66
68
new Webpack . optimize . ModuleConcatenationPlugin ( ) ,
67
- new Webpack . optimize . UglifyJsPlugin ( {
68
- compress : {
69
- warnings : false ,
70
- dead_code : true ,
71
- unused : true ,
72
- keep_fnames : false
73
- } ,
74
- mangle : {
75
- keep_fnames : false
76
- } ,
77
- output : {
78
- beautify : false
79
- }
69
+ new UglifyJSPlugin ( {
70
+ ecma : 5 ,
71
+ cache : true ,
72
+ parallel : true
80
73
} )
81
74
]
You can’t perform that action at this time.
0 commit comments