diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-16 08:13:35 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-16 08:13:35 +0800 |
commit | fb3c2e1fb0dca60302e8dc42e55e321730a54f49 (patch) | |
tree | 321f8e05778bfd1635715fd71e936d9c85f553d4 /packages/instant/webpack.config.js | |
parent | 9adfd1f323b5894aa3ac3ba3da9f531833b9ed1d (diff) | |
download | dexon-sol-tools-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar dexon-sol-tools-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar.gz dexon-sol-tools-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar.bz2 dexon-sol-tools-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar.lz dexon-sol-tools-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar.xz dexon-sol-tools-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar.zst dexon-sol-tools-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.zip |
feat: rename bundle to instant.js and move build to umd dir
Diffstat (limited to 'packages/instant/webpack.config.js')
-rw-r--r-- | packages/instant/webpack.config.js | 9 |
1 files changed, 6 insertions, 3 deletions
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', }, |