gatsby plugin code example
Example: gatsby-plugin-nprogress
// Install
npm install --save gatsby-plugin-nprogress
// Yarn
yarn add gatsby-plugin-nprogress
// How to use
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-nprogress`,
options: {
// Setting a color is optional.
color: `tomato`,
// Disable the loading spinner.
showSpinner: false,
},
},
]