aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/webpack.config.js
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-03 06:48:00 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-03 06:48:00 +0800
commit2540660262313c2d53a2d38af190748857ba3f8d (patch)
tree51d59c5d458e785038282469c0941db00714a026 /packages/instant/webpack.config.js
parent20f18c305495c0d9656bd0cbdfd322f60764c847 (diff)
downloaddexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.gz
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.bz2
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.lz
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.xz
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.zst
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.zip
Add dev environment
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,
+ },
};