Closed jaybo closed 8 months ago
Hi,
There is something in the bug report that doesn't sits well with me:
src="/foo.png" # still works
src="/foo.jpg" # *no image*
It's impossible for one to work while the other to not work. Please take a closer look at the files in your /public folder pls. Is there some typo somewhere? Otherwise it really makes no sense.
Yup, you're right. Previously, running on Windows, image names were case insensitive (and still are case insensitive in production
on Windows), but in development
with Vite, the case must match. Closing.
BTW. Just wanted to express how damned fast development is with the new Vite changes and a large project. Bliss! Thanks!
What happened?
quasar dev -m pwa
orquasar dev -m spa
QImg withsrc="/foo.jpg"
content fails to load (src="/foo.png"
works fine).Before upgrade:
After upgrade:
After upgrade, just removing the leading slash fixes it.
(Frankly I've never been clear regarding the correct syntax when referencing public folder files).
What did you expect to happen?
Existing code doesn't break on upgrade.
Couldn't repro on stackblitz, since I was unable to save a project with images in the public folder.
Reproduction URL
https://stackblitz.com/edit/quasarframework-thsqqq?file=src%2Fpages%2FIndexPage.vue
How to reproduce?
Doesn't repro on StackBlitz... Hmm.
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
SPA Mode
Platforms/Browsers
Chrome, Microsoft Edge
Quasar info output
Relevant log output
Additional context
No response