mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
更新 vuepress 相关依赖至 2.0.0.beta.41,暂时下线hope相关插件 BREAKING CHANGE: 跟随vuepress@2.0.0.beta.41的重大变更
11 lines
348 B
TypeScript
11 lines
348 B
TypeScript
import type { PluginObject } from '@vuepress/core'
|
|
import { nprogressPlugin } from '@vuepress/plugin-nprogress'
|
|
import type { PlumeThemePluginOptions } from '../../shared'
|
|
|
|
export const resolveNprogress = (
|
|
plugins: PlumeThemePluginOptions
|
|
): PluginObject | false => {
|
|
if (plugins.nprogress === false) return false
|
|
return nprogressPlugin()
|
|
}
|