vuePress实战记录
别动我结菜 2020-09-11 vuePress
# 1.开启热更新
如何在vuePress中开启热更新
"dev": "vuepress dev docs"
改为
"dev": "vuepress dev docs --temp .temp"
附:
vuepress 会生成一个 .temp 文件作为临时文件,使用Git的同学没必要上传维护这个文件,只要在 .gitignore 中添加:
# vuepress temp file
.temp
# 2.启动看板娘
安装插件
npm i @vuepress-reco/vuepress-plugin-kan-ban-niang -D
使用插件
plugins: [[
"@vuepress-reco/vuepress-plugin-kan-ban-niang",
{
theme: ["shizuku"],
clean: true,
modelStyle: {
position: "fixed",
left: "0px",
bottom: "0px",
opacity: "0.9",
zIndex: 99999
}
}
]]