aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/webpack.config.js
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-20 01:32:39 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-20 01:32:39 +0800
commit3d6711bd38c3cb801d00a73a6386c4bb16359811 (patch)
tree411ffc816f673c69d50fcf0a9f0ae3c4defa4ea9 /packages/instant/webpack.config.js
parent004e197863e4df942d21f9e4ed629c08eeadad56 (diff)
parent99541f89f7676f6b0d8a923ad377fa901a74f504 (diff)
downloaddexon-sol-tools-3d6711bd38c3cb801d00a73a6386c4bb16359811.tar
dexon-sol-tools-3d6711bd38c3cb801d00a73a6386c4bb16359811.tar.gz
dexon-sol-tools-3d6711bd38c3cb801d00a73a6386c4bb16359811.tar.bz2
dexon-sol-tools-3d6711bd38c3cb801d00a73a6386c4bb16359811.tar.lz
dexon-sol-tools-3d6711bd38c3cb801d00a73a6386c4bb16359811.tar.xz
dexon-sol-tools-3d6711bd38c3cb801d00a73a6386c4bb16359811.tar.zst
dexon-sol-tools-3d6711bd38c3cb801d00a73a6386c4bb16359811.zip
Merge branch 'development' into feature/instant/icons
* development: (37 commits) Add 0x-order-utils.py library to developers home Fixes to CONTRIBUTING.md Improve our CONTRIBUTING.md instructions fix(order_utils.py): publish docs to S3, not RTD (#1264) fix: make instant package private feat: refer to map file in postpublish configs feat: add new bundle name to bundle watch fix: tslint ignore rule in wrong place Update blog post feature Fix disclaimer on mobile Add smart contract docs to Developer Home Add Apache license link Fix capitalization in title Remove excess semi-colon Point directly to README for docs link Update icons Update LICENSE Fix disclaimer Add blogpost URL Add disclaimer ...
Diffstat (limited to 'packages/instant/webpack.config.js')
-rw-r--r--packages/instant/webpack.config.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js
index 3c5cafc1d..fae303712 100644
--- a/packages/instant/webpack.config.js
+++ b/packages/instant/webpack.config.js
@@ -2,11 +2,14 @@ const path = require('path');
const ip = require('ip');
// The common js bundle (not this one) is built using tsc.
// The umd bundle (this one) has a different entrypoint.
+const outputPath = process.env.WEBPACK_OUTPUT_PATH || 'umd';
const config = {
- entry: './src/index.umd.ts',
+ entry: {
+ instant: './src/index.umd.ts',
+ },
output: {
- filename: '[name].bundle.js',
- path: path.resolve(__dirname, 'public'),
+ filename: '[name].js',
+ path: path.resolve(__dirname, outputPath),
library: 'zeroExInstant',
libraryTarget: 'umd',
},