关于vuepress不能热更新问题 (在package.json里面修改)
修改package.json文件的dev字段,将:
“scripts”: {
“dev”: “vuepress dev docs”,
“build”: “vuepress build docs”,
“test”: “echo “Error: no test specified” && exit 1”,
“deploy”: “bash deploy.sh”
}

改为以下:

“scripts”: {
“dev”: “vuepress dev docs --temp .temp”,
“build”: “vuepress build docs”,
“test”: “echo “Error: no test specified” && exit 1”,
“deploy”: “bash deploy.sh”
},
编译时候不能再用yarn docs:dev应修改为 yarn dev

Logo

前往低代码交流专区

更多推荐