diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-16 08:20:06 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-16 08:20:06 +0800 |
commit | f8681a7780d8db0a1f941982bc5b311dfe93f7c3 (patch) | |
tree | f6be782e0ff194655a7423d1e150ff6694981404 | |
parent | fb3c2e1fb0dca60302e8dc42e55e321730a54f49 (diff) | |
download | dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar.gz dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar.bz2 dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar.lz dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar.xz dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.tar.zst dexon-sol-tools-f8681a7780d8db0a1f941982bc5b311dfe93f7c3.zip |
fix: deploy commands
-rw-r--r-- | packages/instant/.dogfood.discharge.json | 2 | ||||
-rw-r--r-- | packages/instant/.staging.discharge.json | 2 | ||||
-rw-r--r-- | packages/instant/webpack.config.js | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/packages/instant/.dogfood.discharge.json b/packages/instant/.dogfood.discharge.json index 9ade97d01..ca36b3861 100644 --- a/packages/instant/.dogfood.discharge.json +++ b/packages/instant/.dogfood.discharge.json @@ -1,6 +1,6 @@ { "domain": "0x-instant-dogfood", - "build_command": "yarn build:umd:prod", + "build_command": "WEBPACK_OUTPUT_PATH=public yarn build:umd:prod", "upload_directory": "public", "index_key": "index.html", "error_key": "index.html", diff --git a/packages/instant/.staging.discharge.json b/packages/instant/.staging.discharge.json index 1026b9986..c917a650b 100644 --- a/packages/instant/.staging.discharge.json +++ b/packages/instant/.staging.discharge.json @@ -1,6 +1,6 @@ { "domain": "0x-instant-staging", - "build_command": "yarn build:umd:prod", + "build_command": "WEBPACK_OUTPUT_PATH=public yarn build:umd:prod", "upload_directory": "public", "index_key": "index.html", "error_key": "index.html", 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', }, |