Skip to content

Commit 6071ab7

Browse files
ayuhitoliamdebeasimo7amd
authored andcommitted
docs: update readme to use latest and switch unpkg to jsdelivr (ionic-team#1084)
* docs: switch unpkg to jsdelivr * docs: fix script tag * Update readme.md * Update package.json --------- Co-authored-by: Liam DeBeasi <[email protected]> Co-authored-by: mo7amd <[email protected]>
1 parent 0963fe2 commit 6071ab7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Also note that only visible icons are loaded, and icons which are "below the fol
2626
If you're using [Ionic Framework](https://ionicframework.com/), Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following `<script>` near the end of your page, right before the closing </body> tag, to enable them.
2727

2828
```html
29-
<script src="https://unpkg.com/ionicons@latest/dist/ionicons.js"></script>
29+
<script type="module" src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.esm.js"></script>
30+
<script nomodule src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.js"></script>
3031
```
3132

3233
### Basic usage

0 commit comments

Comments
 (0)