You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed an issue with the template-ts-vite: the built game doesn't work properly (when build with npm run build), both locally and when uploaded to itch.io, due to vite using absolute path by default.
I found a simple solution by adding a vite.config.js with a default base path:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I noticed an issue with the template-ts-vite: the built game doesn't work properly (when build with
npm run build
), both locally and when uploaded to itch.io, due to vite using absolute path by default.I found a simple solution by adding a vite.config.js with a default base path:
After adding this config, the game works perfectly both locally and on itch.io.
Would it make sense to include this config in the template by default?
PS: Thanks for the engine. I really appreciate it!
Beta Was this translation helpful? Give feedback.
All reactions