Static GitHub Issues

[2302] svg inline loader

prev: Integrating Nuxt to ongoing project generated with Vue Cli
next: head method does not work with mode: spa

Hello!

Have anyone implemented svg loader? I am looking for a solution to use .svg images as components. If I import .svg as a normal vue component, an error occurs:

[Vue warn]: Invalid Component definition: data:image/svg+xml;base64

Any suggestions?

Thank you very much!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2012">#c2012</a>)</em></sub></div>