-
Notifications
You must be signed in to change notification settings - Fork 1
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
add support file #1
Comments
Hi, SVGR is made to solve the issue of importing SVG files to React apps. It converts them to React components, but doesn't allow for URL imports. If you want to achieve that, you probably will want to use the webpack's standard file-loader. |
I would like to use both cases as in webpack. When I use your plugin, the svg files can no longer be imported as a file. In a complex react application I cannot change all the svg to components, so I would like to have both options with its plugin. |
So you'd want it to work the way create-react-app makes it work? |
thanks, it's done here. https://github.com/finmavis/razzle-plugin-svg-react-component |
Please add support with import file or component
example
The text was updated successfully, but these errors were encountered: