I'm using VuePress for the first time, and updating .md
files isn't triggering live reloading.
If I update the .vuepress/config.js
my browser does reload. If I run:
vuepress dev --debug
I see this line in the output, which seems suspicious:
debug watchFiles [
'.vuepress/config.js',
'.vuepress/config.yml',
'.vuepress/config.toml'
]
Is this the error, or is this correct? Googling vuepress watchfiles
doesn't show anything particularly useful.
Since VuePress is now VitePress, I will present the solution for how to reload VitePress sites.
You can simply start a dev server with instant hot updates using,
npm run docs:dev
For more information: https://vitepress.dev/guide/getting-started#up-and-running