PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

svg-url-loader not working

Open gizm0bill opened this issue 8 years ago • 4 comments

any idea why this is not working with your latest webpack setup? neither does svg-inline-loader or raw-loader for svgs. the process passes through the loader code and it returns xml data, but at runtime a require('to/some.svg') ends up being a hash like this e9223cdbd98ab53c4294606232cf160e.svg

gizm0bill avatar Dec 09 '17 22:12 gizm0bill

Found the problem, it is the file-loader rule. By the way, How would you use SVGs with this loader?

gizm0bill avatar Dec 10 '17 13:12 gizm0bill

Hi, did you get your svgs to load? I'm facing the same problem.

bencameron00 avatar Jan 07 '18 11:01 bencameron00

I used raw-loader instead

gizm0bill avatar Jan 07 '18 11:01 gizm0bill

Cool, could you show me the webpack settings that you used to get it to load please?

bencameron00 avatar Jan 12 '18 22:01 bencameron00