1 like
路
771 reads
3 comments
路Mar 5, 2023
Mar 5, 2023
I'm excited to move over to Vite :) thanks for this!
1
路
路Mar 5, 2023
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!
路
路1 reply
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
路