Anomen / next-svgr

Convert your SVG files into React components in Next
MIT License
26 stars 9 forks source link

Add the option to use alongside file/url loader #6

Open madeleineostoja opened 4 years ago

madeleineostoja commented 4 years ago

It would be great if this plugin added an option to use the SVGR + url-loader pattern, so that you can have imports like so:

import starUrl, { ReactComponent as Star } from './star.svg'

Would just be a matter of adding an optional extra loader on this line, as a non-breaking change.