Import SVG as string #16457
Unanswered
ChristopheBougere
asked this question in
CLI - PWA mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to import SVG files as text (not as an asset URL, nor as a Vue component).
If I do this:
It works well for a small SVG file (I'm getting a base 64 URL which I can decode to get the SVG content as a string).
However, for a larger SVG file, I automatically get an asset URL instead.
My use case is to display SVG images in PDF Make which only accept SVG as strings.
I've tried vue-svg-loader but it doesn't seem to work with Vue 3.
I'm using Quasar with Webpack.
Ideally, I would like to keep the current behaviour for most cases, but to force inline when adding
?inline
to my import path.Any idea ?
Beta Was this translation helpful? Give feedback.
All reactions