From 7cecdfc8288f4ae93d313b410f02574ef5c2bd9c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 9 Nov 2017 12:48:50 -0500 Subject: [PATCH] uglify placeholder --- webpack.prod.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webpack.prod.js b/webpack.prod.js index 7d4c259ab6..63a67fb7a7 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -1,5 +1,6 @@ const merge = require('webpack-merge'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); +//const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); const common = require('./webpack.common.js'); const webpack = require('webpack'); @@ -28,6 +29,13 @@ 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 webpack.SourceMapDevToolPlugin({ filename: '[name].js.map', include: ['background.js', 'popup/app.js']