Skip to content

Commit

Permalink
Fix scripts to be used from HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnichollsc authored Mar 19, 2021
1 parent 9975ed6 commit ad5ae94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ Simply add this tag wherever you want in your project:

### Script tag

- Put a script tag similar to this `<script src='https://unpkg.com/@ion-phaser-ce/core@1.0.5/dist/ionphaser.js'></script>` in the head of your index.html
- Put a script tag similar to this `<script src='https://cdn.jsdelivr.net/npm/@ion-phaser-ce/core@1.0.5/dist/ion-phaser-ce/ion-phaser-ce.esm.js'></script>` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### Node Modules
- Run `npm install @ion-phaser-ce/core --save`
- Put a script tag similar to this `<script src='node_modules/@ion-phaser-ce/core/dist/ion-phaser-ce.js'></script>` in the head of your index.html
- Put a script tag similar to this `<script src='node_modules/@ion-phaser-ce/core/dist/ion-phaser-ce/ion-phaser-ce.esm.js'></script>` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### In a stencil-starter app
Expand Down

0 comments on commit ad5ae94

Please sign in to comment.