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
Imported images are well loaded as image after a build but not on dev : urls are loaded as script :(
On dev the content of a generated url http://0.0.0.0:5173/resources/js/maps/leaflet-1.8.0/images/marker-icon-2x.png?import&url is export default "http://0.0.0.0:5173/resources/js/maps/leaflet-1.8.0/images/marker-icon-2x.png"
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
-
Hello
Using Vite 4.5.1, npm 10.2.5, Laravel 10.39.0
Imported images are well loaded as
image
after abuild
but not ondev
: urls are loaded asscript
:(On
dev
the content of a generated urlhttp://0.0.0.0:5173/resources/js/maps/leaflet-1.8.0/images/marker-icon-2x.png?import&url
isexport default "http://0.0.0.0:5173/resources/js/maps/leaflet-1.8.0/images/marker-icon-2x.png"
Any idea about where I'm wrong ?
Thanks & cheers
Beta Was this translation helpful? Give feedback.
All reactions