-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Hello there, I'm not sure if this is an issue with the loader or merely a lack of my understanding. It appears that when I attempt to dynamically load an SVG using the v-bind:src
approach on the image tag, the loader cannot find it.
Loading SVG from src path
<img svg-inline :src="`../../static/images/icon-${game.name}.svg`" />
If I write it in normally src="../../static/images/icon-basketball.svg"
it works.
Loading SVG from build path
I've also tried this:
<img svg-inline :src="`/images/icon-${game.name}.svg`" />
But it ends up just loading up an image tag with the SVG as it's src instead of inlining the SVG.
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels