1.0.1 • Published 4 years ago

vuepress-plugin-cleanmylink v1.0.1

Weekly downloads
2
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

Vuepress-Plugin-cleanmylink

npm.io npm.io

一个用于检查 Vuepress 下所有的 Hyperlink ,返回所有的非 200 的链接

用法

  1. 使用 npm install --save vuepress-plugin-cleanmylink 安装插件
  2. .vuepress/config.js 的 plugins 配置项目中加入插件配置,具体如下
module.exports = {
  plugins: [
    ['vuepress-plugin-cleanmylink',{
    	allowState: [200,201,301,302,405],
    	fileName: 'link-with-error.txt',
    }]
  ]
}
  • allowState 为允许通过的状态码,一般建议设置为 200,201,301,302。
  • fileName 为导出链接时的对应文件。根据你自己的需求自定义。如果不需要导出,则设置此项目为 null

LINCESE

GPLV3