aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/webpack.config.js
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-23 02:40:27 +0800
committerGitHub <noreply@github.com>2018-05-23 02:40:27 +0800
commit96febf663924445363e0120b7341bf0c12b03700 (patch)
tree73930dcb56db0c1ef38befea5418847ff09e189f /packages/website/webpack.config.js
parent09e59cf67761e86046221d058a9632730a5a632a (diff)
parent5456187dd03c0dd5eb141259541e7fe65f2c9ad8 (diff)
downloaddexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar
dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.gz
dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.bz2
dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.lz
dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.xz
dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.zst
dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.zip
Merge pull request #605 from 0xProject/fix/multiple/build-errors
Fix build/lint errors and warnings
Diffstat (limited to 'packages/website/webpack.config.js')
-rw-r--r--packages/website/webpack.config.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/website/webpack.config.js b/packages/website/webpack.config.js
index e28e9e064..f9abeb27c 100644
--- a/packages/website/webpack.config.js
+++ b/packages/website/webpack.config.js
@@ -1,5 +1,6 @@
const path = require('path');
const webpack = require('webpack');
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
module.exports = {
entry: ['./ts/index.tsx'],
@@ -76,9 +77,14 @@ module.exports = {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
},
}),
- new webpack.optimize.UglifyJsPlugin({
- mangle: {
- except: ['BigNumber'],
+ // TODO: Revert to webpack bundled version with webpack v4.
+ // The v3 series bundled version does not support ES6 and
+ // fails to build.
+ new UglifyJsPlugin({
+ uglifyOptions: {
+ mangle: {
+ reserved: ['BigNumber'],
+ },
},
}),
]