diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-10-24 21:40:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 21:40:38 +0800 |
commit | 641d3b75eadf8f3330d60ca26b7edc06a871219c (patch) | |
tree | a2fa218dfd160986d39a2281a6748c325ebba2d1 /webpack.config.js | |
parent | fab2fa9adfe95db0b6f203efb926d52b6c9e14d4 (diff) | |
download | dexon-sol-tools-641d3b75eadf8f3330d60ca26b7edc06a871219c.tar dexon-sol-tools-641d3b75eadf8f3330d60ca26b7edc06a871219c.tar.gz dexon-sol-tools-641d3b75eadf8f3330d60ca26b7edc06a871219c.tar.bz2 dexon-sol-tools-641d3b75eadf8f3330d60ca26b7edc06a871219c.tar.lz dexon-sol-tools-641d3b75eadf8f3330d60ca26b7edc06a871219c.tar.xz dexon-sol-tools-641d3b75eadf8f3330d60ca26b7edc06a871219c.tar.zst dexon-sol-tools-641d3b75eadf8f3330d60ca26b7edc06a871219c.zip |
Revert "Reduce final bundle size by 11% (82kB)"
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index caf45d31b..61a7e4196 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ /** * 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'; @@ -9,7 +10,7 @@ let entry = { 'index': './src/index.ts', }; if (production) { - entry = Object.assign({}, entry, {'index.min': './src/index.ts'}); + entry = _.assign({}, entry, {'index.min': './src/index.ts'}); } module.exports = { |