Basic transformer plugin enabling users to retrieve inline SVG processed by SVGO via Gatsby’s GraphQL API.
npm install gatsby-transformer-svgo-inline
yarn add gatsby-transformer-svgo-inline
svgoConfigis passed through to SVGO.
I wanted to specify SVG’s within data structures (e.g. Markdown front-matter) and retrieve the optimized inline markup in the same query as for the rest of the front-matter.
- “Examples of usage” in this README.
- Consider adding logic to behave differently as a function of