diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-05 02:03:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-05 02:03:01 +0800 |
commit | c9bfb86960d3c57c8cdefb4d044036028bfb47ed (patch) | |
tree | 52e6e2185c7a03338930111661b32d75aeea29cb /packages/instant/webpack.config.js | |
parent | d0b2b4d0aa8b67c6f867f83c9b35b8e49c57b4a1 (diff) | |
parent | 3991e66a58f28dbed5e75f74ef4aaaf6bb3a4d3e (diff) | |
download | dexon-sol-tools-c9bfb86960d3c57c8cdefb4d044036028bfb47ed.tar dexon-sol-tools-c9bfb86960d3c57c8cdefb4d044036028bfb47ed.tar.gz dexon-sol-tools-c9bfb86960d3c57c8cdefb4d044036028bfb47ed.tar.bz2 dexon-sol-tools-c9bfb86960d3c57c8cdefb4d044036028bfb47ed.tar.lz dexon-sol-tools-c9bfb86960d3c57c8cdefb4d044036028bfb47ed.tar.xz dexon-sol-tools-c9bfb86960d3c57c8cdefb4d044036028bfb47ed.tar.zst dexon-sol-tools-c9bfb86960d3c57c8cdefb4d044036028bfb47ed.zip |
merge base branch
Diffstat (limited to 'packages/instant/webpack.config.js')
-rw-r--r-- | packages/instant/webpack.config.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js new file mode 100644 index 000000000..78a33ce90 --- /dev/null +++ b/packages/instant/webpack.config.js @@ -0,0 +1,28 @@ +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.umd.ts', + output: { + filename: '[name].bundle.js', + path: path.resolve(__dirname, 'public'), + library: 'zeroExInstant', + libraryTarget: 'umd', + }, + devtool: 'source-map', + resolve: { + extensions: ['.js', '.json', '.ts', '.tsx'], + }, + module: { + rules: [ + { + test: /\.(ts|tsx)$/, + loader: 'awesome-typescript-loader', + }, + ], + }, + devServer: { + contentBase: path.join(__dirname, 'public'), + port: 5000, + }, +}; |