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.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js
index f7500c69c..78a33ce90 100644
--- a/packages/instant/webpack.config.js
+++ b/packages/instant/webpack.config.js
@@ -1,9 +1,13 @@
const path = require('path');
+// The common js bundle (not this one) is built using tsc.
+// The umd bundle (this one) has a different entrypoint.
module.exports = {
- entry: './src/index.ts',
+ entry: './src/index.umd.ts',
output: {
filename: '[name].bundle.js',
- path: path.resolve(__dirname, 'lib'),
+ path: path.resolve(__dirname, 'public'),
+ library: 'zeroExInstant',
+ libraryTarget: 'umd',
},
devtool: 'source-map',
resolve: {
@@ -17,4 +21,8 @@ module.exports = {
},
],
},
+ devServer: {
+ contentBase: path.join(__dirname, 'public'),
+ port: 5000,
+ },
};