@vuepress/plugin-nprogress

A progress bar plugin based on nprogressnprogress - 图1.

Install

  1. yarn add -D @vuepress/plugin-nprogress
  2. # OR npm install -D @vuepress/plugin-nprogress

Usage

  1. module.exports = {
  2. plugins: ['@vuepress/nprogress']
  3. }

Custom color

Set $nprogressColor in your site or theme palette.styl file to change the color of the progress bar (default is $accentColor).

  1. // .vuepress/styles/palette.styl
  2. // or
  3. // .vuepress/theme/styles/palette.styl
  4. $nprogressColor = red

Also see: