diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-29 22:06:04 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-29 22:06:04 +0800 |
commit | c513a5a5bd06d7af4e7a051a11bdd3eec4b54007 (patch) | |
tree | cc32c9ee2a2665ee5dfb87b5a58bebd85cd42d7a /webpack.config.js | |
parent | 61c8372ae004b53d85e91969bb6a93eae48951cf (diff) | |
parent | abd0228ba8b71b35ff089fc647674caa08d7a24e (diff) | |
download | dexon-sol-tools-c513a5a5bd06d7af4e7a051a11bdd3eec4b54007.tar dexon-sol-tools-c513a5a5bd06d7af4e7a051a11bdd3eec4b54007.tar.gz dexon-sol-tools-c513a5a5bd06d7af4e7a051a11bdd3eec4b54007.tar.bz2 dexon-sol-tools-c513a5a5bd06d7af4e7a051a11bdd3eec4b54007.tar.lz dexon-sol-tools-c513a5a5bd06d7af4e7a051a11bdd3eec4b54007.tar.xz dexon-sol-tools-c513a5a5bd06d7af4e7a051a11bdd3eec4b54007.tar.zst dexon-sol-tools-c513a5a5bd06d7af4e7a051a11bdd3eec4b54007.zip |
Merge branch 'master' into addSignOrderHashAndTests
# Conflicts:
# package.json
# src/globals.d.ts
# test/0x.js_test.ts
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js index 67af51f7a..03a7c6cac 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,14 +1,20 @@ /** * This is to generate the umd bundle only */ +const lodash = require('lodash'); const webpack = require('webpack'); const path = require('path'); +const production = process.env.NODE_ENV === 'production'; + +let entry = { + '0x': './src/0x.js.ts', +}; +if (production) { + entry = _.assign({}, entry, {'0x.min': './src/0x.js.ts'}); +} module.exports = { - entry: { - '0x': './src/ts/0x.js.ts', - '0x.min': './src/ts/0x.js.ts' - }, + entry, output: { path: path.resolve(__dirname, '_bundles'), filename: '[name].js', |