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 | |
parent | 9adfd1f323b5894aa3ac3ba3da9f531833b9ed1d (diff) | |
download | dexon-0x-contracts-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar.gz dexon-0x-contracts-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.tar.zst dexon-0x-contracts-fb3c2e1fb0dca60302e8dc42e55e321730a54f49.zip |
feat: rename bundle to instant.js and move build to umd dir
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/.gitignore | 3 | ||||
-rw-r--r-- | packages/instant/package.json | 4 | ||||
-rw-r--r-- | packages/instant/public/index.html | 2 | ||||
-rw-r--r-- | packages/instant/webpack.config.js | 9 |
4 files changed, 11 insertions, 7 deletions
diff --git a/packages/instant/.gitignore b/packages/instant/.gitignore index e1ce60fa2..a34dc5d2f 100644 --- a/packages/instant/.gitignore +++ b/packages/instant/.gitignore @@ -1,2 +1,3 @@ public/main.bundle.js -public/main.bundle.js.map
\ No newline at end of file +public/main.bundle.js.map +umd/*
\ No newline at end of file diff --git a/packages/instant/package.json b/packages/instant/package.json index 2f366f56e..bee69247b 100644 --- a/packages/instant/package.json +++ b/packages/instant/package.json @@ -29,8 +29,8 @@ "config": { "postpublish": { "assets": [ - "packages/instant/public/index.js", - "packages/instant/public/index.min.js" + "packages/instant/umd/instant.js", + "packages/instant/umd/instant.min.js" ] } }, diff --git a/packages/instant/public/index.html b/packages/instant/public/index.html index f6c809e33..253cbb194 100644 --- a/packages/instant/public/index.html +++ b/packages/instant/public/index.html @@ -6,7 +6,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <title>0x Instant Dev Environment</title> <link rel="stylesheet" href="/external.css"> - <script type="text/javascript" src="/main.bundle.js" charset="utf-8"></script> + <script type="text/javascript" src="/instant.js" charset="utf-8"></script> <script type="text/javascript" src="https://unpkg.com/jsuri@1.3.1/Uri.js" charset="utf-8"></script> <script type="text/javascript" src="https://unpkg.com/bignumber.js@4.1.0/bignumber.js" charset="utf-8"></script> <style> 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', }, |