1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

minify vendor

This commit is contained in:
Kyle Spearrin
2017-11-09 14:28:18 -05:00
parent 7cecdfc828
commit 04ff1e6fba
3 changed files with 5 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
const merge = require('webpack-merge');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const common = require('./webpack.common.js');
const webpack = require('webpack');
@@ -29,13 +29,9 @@ module.exports = merge(common, {
]
},
plugins: [
// UglifyJS does not support es6
// ref: https://github.com/webpack/webpack/issues/2972#issuecomment-261705632
//new UglifyJSPlugin({
// uglifyOptions: {
// mangle: false
// }
//}),
new UglifyJSPlugin({
include: ['vendor.js', 'popup/vendor.js']
}),
new webpack.SourceMapDevToolPlugin({
filename: '[name].js.map',
include: ['background.js', 'popup/app.js']