-
-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there anyway to get raw svg? #132
Comments
I don't know what you mean by "raw SVG" but you can use SVGR + "url-loader" or SVGR + "file-loader". It is documented in README. For most complex cases I suggest you to create two folders and duplicate SVG, one Webpack config for each folder. |
What I mean is getting SVG content as string instead of a react component or url-encoded text. It would be great to be able to do something like this:
|
You should try to put a |
I use
@svgr/webpack
to load all.svg
files and svg react components almost everywhere, except few places that I still need to use raw svg content. Is there anyway to get raw content of an imported svg file?The text was updated successfully, but these errors were encountered: