jacobmischka / gatsby-plugin-react-svg

Adds svg-react-loader to gatsby webpack config
https://www.npmjs.com/package/gatsby-plugin-react-svg
MIT License
70 stars 21 forks source link

Provide/fix instructions #2

Closed tremby closed 6 years ago

tremby commented 6 years ago

I had to look in your package.json file to find the npm name for this plugin (@jacobmischka/gatsby-plugin-react-svg) in order to install it.

After installing it I added the configuration in your readme to my gatsby-config.js file (your readme does not currently instruct this).

That got me Error: Unable to find plugin "gatsby-plugin-react-svg".

The config should in fact have resolve: "@jacobmischka/gatsby-plugin-react-svg",.

jacobmischka commented 6 years ago

Ah whoops, I forgot I never published under the unscoped name. Thanks for the reminder!

You should be able to use gatsby-plugin-react-svg directly now, without the @jacobmischka scope: https://www.npmjs.com/package/gatsby-plugin-react-svg

tremby commented 6 years ago

OK, but you should expand on the readme all the same.