jhamlet / svg-react-loader

Webpack SVG to React Component Loader
MIT License
559 stars 82 forks source link

classIdPrefix interpolations broken #88

Closed jak3122 closed 6 years ago

jak3122 commented 6 years ago

It looks like using a classIdPrefix string with interpolations like [name] through a webpack config is broken. I think it is due to a typo here, classIdPref instead of classIdPrefix.

The example from the readme using classIdPrefix: '[name]-[hash:8]__' uses the literal string as a prefix instead of interpolating it. Using classIdPrefix: true to use the name as a prefix does work.

Strangehill commented 4 years ago

I'm having this issue with the gatsby plugin.... can't even get classIdPrefix: true to work. What is this a duplicate of?