summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-08-15 16:16:37 -0700
committerEd Tanous <ed.tanous@intel.com>2018-08-20 15:46:45 +0000
commit26539864e2aa078fa5d9723f05760a3068ce3bec (patch)
tree9d1d3c4099dacd7b968c931dad23bc73d4293b3f /webpack.config.js
parentba7dad900c8c0ff4cc0043c3320ebf62c933cf0a (diff)
downloadphosphor-webui-26539864e2aa078fa5d9723f05760a3068ce3bec.tar.gz
phosphor-webui-26539864e2aa078fa5d9723f05760a3068ce3bec.zip
Turn uglification back on
Fixes github bug openbmc/openbmc#2871 Turn on uglification again. It turns out, we only had one issue preventing the UI from starting when running in uglified mode. This patchset fixes the issue, and reenables uglification. This patchset drops our gzip compressed payload size by about 50K (about 14%). While it doesn't seem like a lot now, it increases our ability to scale the javascript payloads going forward. Change-Id: I0744687203a9db0f4b26d1e1d2f4e3bdb4a52f78 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index b82bbb9..6b3e899 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -223,8 +223,7 @@ module.exports = [function makeWebpackConfig() {
// Reference:
// http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
// Minify all javascript, switch loaders to minimizing mode
- // TODO: openbmc/openbmc#2871 Mangling currently breaks the GUI.
- new UglifyJsPlugin({uglifyOptions: {mangle: false}}),
+ new UglifyJsPlugin(),
// Copy assets from the public folder
// Reference: https://github.com/kevlened/copy-webpack-plugin
OpenPOWER on IntegriCloud