Commit 59f1aa4
committed
Fix index.html to load compiled JS from dist folder
- Update script src from /src/main.ts to ./dist/assets/index-*.js
- Add modulepreload for Phaser chunk
- This is the actual fix for the MIME type error
The game will now load correctly when served from GitHub.1 parent d10f978 commit 59f1aa4
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
37 | 38 | | |
38 | 39 | | |
0 commit comments