aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/webpack.config.js
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-16 08:20:06 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-16 08:20:06 +0800
commitf8681a7780d8db0a1f941982bc5b311dfe93f7c3 (patch)
treef6be782e0ff194655a7423d1e150ff6694981404 /packages/instant/webpack.config.js
parentfb3c2e1fb0dca60302e8dc42e55e321730a54f49 (diff)
downloaddexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar.gz
dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar.zst
dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.zip
fix: deploy commands
Diffstat (limited to 'packages/instant/webpack.config.js')
-rw-r--r--packages/instant/webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js
index e77c44683..239950866 100644
--- a/packages/instant/webpack.config.js
+++ b/packages/instant/webpack.config.js
@@ -2,14 +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: {
instant: './src/index.umd.ts',
},
output: {
filename: '[name].js',
- path: path.resolve(__dirname, 'umd'),
+ path: path.resolve(__dirname, outputPath),
library: 'zeroExInstant',
libraryTarget: 'umd',
},