/gridsome-plugin-nprogress

nprogress plugin for gridsome

Primary LanguageJavaScriptMIT LicenseMIT

gridsome logo

gridsome-plugin-nprogress

Automatically shows the nprogress indicator when a page is delayed in loading (which Gridsome considers as one second after clicking on a link).

Install

yarn add gridsome-plugin-nprogress
npm i gridsome-plugin-nprogress

Usage

Add gridsome-plugin-nprogress to plugin array with following configurable options to gridsome.config.js

...
plugins:[
    {
        use: 'gridsome-plugin-nprogress',
        options: {
          // Setting a color is optional.
          color: '#0366d6',
          // Disable the loading spinner.
          showSpinner: false,
        }
    }
]

License

GitHub license