aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-29 19:27:26 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-29 19:27:26 +0800
commit6213407f544e34c13a4d125136d14a1d888d8c6a (patch)
treee36966561582c40ad4fe5b94ed9df0e47a4a207c /webpack.config.js
parent055763cd373c5203182bc269ee3f8f737a34ba8e (diff)
downloaddexon-sol-tools-6213407f544e34c13a4d125136d14a1d888d8c6a.tar
dexon-sol-tools-6213407f544e34c13a4d125136d14a1d888d8c6a.tar.gz
dexon-sol-tools-6213407f544e34c13a4d125136d14a1d888d8c6a.tar.bz2
dexon-sol-tools-6213407f544e34c13a4d125136d14a1d888d8c6a.tar.lz
dexon-sol-tools-6213407f544e34c13a4d125136d14a1d888d8c6a.tar.xz
dexon-sol-tools-6213407f544e34c13a4d125136d14a1d888d8c6a.tar.zst
dexon-sol-tools-6213407f544e34c13a4d125136d14a1d888d8c6a.zip
Refactor test commands
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 7b7b10b52..9718477aa 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -3,12 +3,17 @@
*/
const webpack = require('webpack');
const path = require('path');
+const PROD = process.env.NODE_ENV === 'production';
+
+let entry = {
+ '0x': './src/0x.js.ts',
+};
+if (PROD) {
+ entry = Object.assign({}, entry, {'0x.min': './src/0x.js.ts'});
+}
module.exports = {
- entry: {
- '0x': './src/0x.js.ts',
- '0x.min': './src/0x.js.ts'
- },
+ entry,
output: {
path: path.resolve(__dirname, '_bundles'),
filename: '[name].js',