diff --git a/package.json b/package.json index 4320585de..be1fef0e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "material-components-vue", - "version": "0.0.35", + "version": "0.0.36", "description": "material-components-web with vuejs", "author": "Mats Pfeiffer", "license": "MIT", @@ -33,6 +33,7 @@ "optimize-css-assets-webpack-plugin": "^3.2.0", "sass-loader": "^6.0.6", "style-loader": "^0.19.0", + "uglifyjs-webpack-plugin": "^0.4.6", "vue-loader": "^13.0.5", "vue-template-compiler": "^2.4.4", "webpack": "^3.6.0" diff --git a/webpack.config.js b/webpack.config.js index 32197828d..a84cc9a96 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,6 +2,8 @@ const path = require('path') const Webpack = require('webpack') const ExtractTextPlugin = require('extract-text-webpack-plugin') const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin') +const UglifyJSPlugin = require('uglifyjs-webpack-plugin') + const root = path.join(__dirname) const src = path.join(root + '/src/') @@ -64,18 +66,9 @@ module.exports.plugins = [ }), new OptimizeCssAssetsPlugin(), new Webpack.optimize.ModuleConcatenationPlugin(), - new Webpack.optimize.UglifyJsPlugin({ - compress: { - warnings: false, - dead_code: true, - unused: true, - keep_fnames: false - }, - mangle: { - keep_fnames: false - }, - output: { - beautify: false - } + new UglifyJSPlugin({ + ecma: 5, + cache: true, + parallel: true }) ]