We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c228de9 commit 6048eb9Copy full SHA for 6048eb9
lib/dev.js
@@ -44,8 +44,13 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
44
45
// watch config file
46
const configWatcher = chokidar.watch([
47
- path.join(sourceDir, '.vuepress/config.js')
48
- ], { ignoreInitial: true })
+ '.vuepress/config.js',
+ '.vuepress/config.yml',
49
+ '.vuepress/config.toml'
50
+ ], {
51
+ cwd: sourceDir,
52
+ ignoreInitial: true
53
+ })
54
configWatcher.on('change', update)
55
56
// also listen for frontmatter changes from markdown files
0 commit comments