@vuepress/plugin-nprogress

一个基于 nprogress 的进度条插件。1.0.0-alpha.31+

安装

  1. yarn add -D @vuepress/plugin-nprogress@next
  2. # 或者 npm install -D @vuepress/plugin-nprogress@next

使用

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

自定义颜色

在你的 sitethemepalette.styl 文件中设置 $nprogressColor 来改变进度条的颜色(默认使用 $accentColor)。

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

参考: