Answers for "use svg in gatsby"

3

use svg in gatsby

npm install --save gatsby-plugin-react-svg

# yarn 

yarn add gatsby-plugin-react-svg

// In your gatsby-config.js

plugins: [
  {
    resolve: "gatsby-plugin-react-svg",
    options: {
      rule: {
        include: /assets/ // See below to configure properly
      }
    }
  }
];
Posted by: Guest on August-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language