From fb3c2e1fb0dca60302e8dc42e55e321730a54f49 Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 15 Nov 2018 16:13:35 -0800 Subject: feat: rename bundle to instant.js and move build to umd dir --- packages/instant/webpack.config.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'packages/instant/webpack.config.js') diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js index 3129e13a6..e77c44683 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 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, 'umd'), library: 'zeroExInstant', libraryTarget: 'umd', }, -- cgit v1.2.3 From f8681a7780d8db0a1f941982bc5b311dfe93f7c3 Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 15 Nov 2018 16:20:06 -0800 Subject: fix: deploy commands --- packages/instant/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/instant/webpack.config.js') 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', }, -- cgit v1.2.3