summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-02-02 14:01:16 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-02-07 15:05:20 +0000
commit8beb651d8b74beb05956435210cc9421e0119a3f (patch)
tree3e16f836ba01a653125eba60865a6b135b069d88 /webpack.config.js
parent3b3ab8af26dddc1229920e93ebb741ab6230fcc5 (diff)
downloadphosphor-webui-8beb651d8b74beb05956435210cc9421e0119a3f.tar.gz
phosphor-webui-8beb651d8b74beb05956435210cc9421e0119a3f.zip
Turn off the mangler
The javascript in this repository isn't currently compatible with the name mangling done by the uglifier plugin (it causes unknown provider errors). This commit can be reverted when it is fixed. Change-Id: I1589e2ba392aec7b321b9816475613215836c47d Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 2297fc5..dbdab02 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -229,7 +229,10 @@ module.exports = [
// Reference:
// http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
// Minify all javascript, switch loaders to minimizing mode
- new webpack.optimize.UglifyJsPlugin(),
+ // TODO: openbmc/openbmc#2781 Mangling currently breaks the GUI.
+ new webpack.optimize.UglifyJsPlugin({
+ mangle: false
+ }),
// Copy assets from the public folder
// Reference: https://github.com/kevlened/copy-webpack-plugin
OpenPOWER on IntegriCloud