feat: rename bundle to instant.js and move build to umd dir
This commit is contained in:
3
packages/instant/.gitignore
vendored
3
packages/instant/.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
public/main.bundle.js
|
||||
public/main.bundle.js.map
|
||||
public/main.bundle.js.map
|
||||
umd/*
|
@@ -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"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@@ -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>
|
||||
|
@@ -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',
|
||||
},
|
||||
|
Reference in New Issue
Block a user