@jacobmischka/gatsby-plugin-react-svg

Adds svg-react-loader to gatsby webpack config.

Stats

StarsIssuesVersionUpdatedCreatedSize
@jacobmischka/gatsby-plugin-react-svg
64141.1.04 years ago4 years agoMinified + gzip package size for @jacobmischka/gatsby-plugin-react-svg in KB

Readme

Adds svg-react-loader to gatsby webpack config (and removes svgs from the built-in url-loader config).

include and exclude plugin options can be specified, if either is present then svg-react-loader will use them and url-loader will be reenabled with the inverse.

The following uses svg-react-loader to process svgs from a path matching /assets/, and url-loader to process svgs from everywhere else.

{
    resolve: 'gatsby-plugin-react-svg',
    options: {
        include: /assets/
    }
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.