-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (27 loc) · 798 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<html>
<head>
<title>MyLib Demo</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9"
crossorigin="anonymous"
/>
</head>
<body>
<div class="container py-5">
<h1 class="mb-4">MyLib Demo</h1>
<p id="esm" class="text-success"></p>
<p id="umd" class="text-success"></p>
</div>
<script type="module">
import foo from "./src/index.ts"
document.querySelector("#esm").innerHTML = foo("esm")
</script>
<script src="./dist/index.umd.js"></script>
<script>
document.querySelector("#umd").innerHTML = myLib("umd")
</script>
</body>
</html>