aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/webpack.config.js
diff options
context:
space:
mode:
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',
},