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

Can't seem to get exclude to work. #8

Closed tbaustin closed 5 years ago

tbaustin commented 5 years ago
                {
            resolve: `gatsby-plugin-react-svg`,
            options: {
                rule: {
                    exclude: /stars/,
                },
            },
        },
jacobmischka commented 5 years ago

Are you using the next tag and gatsby v2? The current README is for that, if you're using gatsby 1 and the stable version of this plugin, you need to omit the rule piece of the object.

Please see the old version of the README here: https://github.com/jacobmischka/gatsby-plugin-react-svg/blob/0c4a004253cc2609c3a7e65772198825d6a6ae67/README.md

Sorry for the confusion!

jacobmischka commented 5 years ago

With 2.0's release, the latest tag should now support the syntax in the README. Please feel free to write back if you still have issues.