aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 9718477aa..03a7c6cac 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,15 +1,16 @@
/**
* This is to generate the umd bundle only
*/
+const lodash = require('lodash');
const webpack = require('webpack');
const path = require('path');
-const PROD = process.env.NODE_ENV === 'production';
+const production = process.env.NODE_ENV === 'production';
let entry = {
'0x': './src/0x.js.ts',
};
-if (PROD) {
- entry = Object.assign({}, entry, {'0x.min': './src/0x.js.ts'});
+if (production) {
+ entry = _.assign({}, entry, {'0x.min': './src/0x.js.ts'});
}
module.exports = {