提交 6048eb9f 编写于 作者: U ULIVZ

fix($dev): using config.yml/toml doesn't reload changes (close: #520)

上级 c228de90
...@@ -44,8 +44,13 @@ module.exports = async function dev (sourceDir, cliOptions = {}) { ...@@ -44,8 +44,13 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
// watch config file // watch config file
const configWatcher = chokidar.watch([ const configWatcher = chokidar.watch([
path.join(sourceDir, '.vuepress/config.js') '.vuepress/config.js',
], { ignoreInitial: true }) '.vuepress/config.yml',
'.vuepress/config.toml'
], {
cwd: sourceDir,
ignoreInitial: true
})
configWatcher.on('change', update) configWatcher.on('change', update)
// also listen for frontmatter changes from markdown files // also listen for frontmatter changes from markdown files
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册