Every time I use svg images, I want to provide png fallbacks. I was looking into using the file-loader
, but I need to do a bit more:
- Move svg and png fallback files into the destination folder.
- Bundle a module for the client to check for svg support.
- Bundle a module for the client that returns the correct url for the image based on svg support.
I hoped there would be an svg-loader
but didn't find one in the list. Maybe it's a good idea?