mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Update README.template.md
This commit is contained in:
parent
271e34ff4c
commit
c9198eccb2
1 changed files with 3 additions and 4 deletions
|
|
@ -42,16 +42,15 @@ Expose a global ( wider browser support):
|
||||||
```html
|
```html
|
||||||
<script src="//unpkg.com/#{REPO_NAME}#/umd_bundle.min.js"></script>
|
<script src="//unpkg.com/#{REPO_NAME}#/umd_bundle.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var { myFunction, myObject } = window['#{REPO_NAME}#'];
|
var myFunction = #{REPO_NAME_NO_DASHES}.myFunction;
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
Or import as an ES module:
|
Or import as an ES module:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script type="module" src="//unpkg.com/#{REPO_NAME}#/zz_esm/index.js"></script>
|
<script type="module">
|
||||||
<script>
|
import { myFunction, myObject } from '//unpkg.com/#{REPO_NAME}#/zz_esm/index.js';
|
||||||
import { myFunction, myObject } from '#{REPO_NAME}#';
|
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue