wugge
SVG Loading different in Dev and Production
Hi!
I'm using vite-svg-loader as a nuxt plugin to load my SVG's dynamically.
Like this:
When this code runs with everything is fine, after however instead of getting the URL to the SVG I'm getting the SVG code itself returned, but I would need the URL like in dev mode.
Could the SSR be causing this? Anybody has an idea or an advice how to implement this?
9 replies