Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 5cb239f

Browse files
committed
New version.
1 parent 03cac4b commit 5cb239f

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "material-components-vue",
3-
"version": "0.0.35",
3+
"version": "0.0.36",
44
"description": "material-components-web with vuejs",
55
"author": "Mats Pfeiffer",
66
"license": "MIT",
@@ -33,6 +33,7 @@
3333
"optimize-css-assets-webpack-plugin": "^3.2.0",
3434
"sass-loader": "^6.0.6",
3535
"style-loader": "^0.19.0",
36+
"uglifyjs-webpack-plugin": "^0.4.6",
3637
"vue-loader": "^13.0.5",
3738
"vue-template-compiler": "^2.4.4",
3839
"webpack": "^3.6.0"

webpack.config.js

+6-13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const path = require('path')
22
const Webpack = require('webpack')
33
const ExtractTextPlugin = require('extract-text-webpack-plugin')
44
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
5+
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
6+
57

68
const root = path.join(__dirname)
79
const src = path.join(root + '/src/')
@@ -64,18 +66,9 @@ module.exports.plugins = [
6466
}),
6567
new OptimizeCssAssetsPlugin(),
6668
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
8073
})
8174
]

0 commit comments

Comments
 (0)