We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ff612 commit 1f34db9Copy full SHA for 1f34db9
lib/dev.js
@@ -26,12 +26,14 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
26
console.error(chalk.red(err.stack))
27
})
28
}
29
-
+ console.log(path.join(sourceDir, '**/*.md'))
30
+ console.log(path.resolve(sourceDir, '**/*.md'))
31
// watch add/remove of files
32
const pagesWatcher = chokidar.watch([
- path.join(sourceDir, '**/*.md'),
33
- path.join(sourceDir, '.vuepress/components/**/*.vue')
+ '**/*.md',
34
+ '.vuepress/components/**/*.vue'
35
], {
36
+ cwd: sourceDir,
37
ignored: '.vuepress/**/*.md',
38
ignoreInitial: true
39
0 commit comments