Sign in
Log inSign up
Kirk Morris

1 like

771 reads

3 comments

Rob Leachman
Rob Leachman
Mar 5, 2023

I'm excited to move over to Vite :) thanks for this!

1
Rob Leachman
Rob Leachman
Mar 5, 2023

Boy howdy did I struggle to get assets to load. I think this page would be stronger if you included some words on how to do it, cover npm run build and include a .png or something in the demo code.

Quite a wild ride but I got it. I think the key mojo is 1) put static assets in public and not under the src path, and 2) include vite.config.ts to set the path.

There is probably more, just now I am exhausted after getting unstuck. Thanks!

ref: github.com/iwantantra/vite-phaser-ts/issues/1

1 reply
Kirk Morris
Kirk Morris
Author
Mar 5, 2023

Hey Rob! Thank you for the great feedback!! When I get a chance I'll definitely update the tutorial to include more on static asset loading! 馃槑

1