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
|
||||
<script src="//unpkg.com/#{REPO_NAME}#/umd_bundle.min.js"></script>
|
||||
<script>
|
||||
var { myFunction, myObject } = window['#{REPO_NAME}#'];
|
||||
var myFunction = #{REPO_NAME_NO_DASHES}.myFunction;
|
||||
</script>
|
||||
```
|
||||
|
||||
Or import as an ES module:
|
||||
|
||||
```html
|
||||
<script type="module" src="//unpkg.com/#{REPO_NAME}#/zz_esm/index.js"></script>
|
||||
<script>
|
||||
import { myFunction, myObject } from '#{REPO_NAME}#';
|
||||
<script type="module">
|
||||
import { myFunction, myObject } from '//unpkg.com/#{REPO_NAME}#/zz_esm/index.js';
|
||||
</script>
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue