diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-10-19 21:31:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 21:31:06 +0800 |
commit | ddec91ba520f231b1a9957acd2bd5ac1b398e6c7 (patch) | |
tree | 57202aa449fc148d10503629e75e2d80446655fd /webpack.config.js | |
parent | 8931f2e7364b9087c1db01b77eafd827d2c8bbbc (diff) | |
parent | 0329b36430456780ac2fa26749ce9bff730ba121 (diff) | |
download | dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.gz dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.bz2 dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.lz dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.xz dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.zst dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.zip |
Merge pull request #195 from 0xProject/minification
Reduce final bundle size by 11% (82kB)
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index 61a7e4196..caf45d31b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,6 @@ /** * This is to generate the umd bundle only */ -const _ = require('lodash'); const webpack = require('webpack'); const path = require('path'); const production = process.env.NODE_ENV === 'production'; @@ -10,7 +9,7 @@ let entry = { 'index': './src/index.ts', }; if (production) { - entry = _.assign({}, entry, {'index.min': './src/index.ts'}); + entry = Object.assign({}, entry, {'index.min': './src/index.ts'}); } module.exports = { |