Skip to content

Commit ab53998

Browse files
meteorlxyulivz
authored andcommitted
fix: glob patterns error on windows (close: #348) (#400)
1 parent f61bfdd commit ab53998

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/dev.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
2929

3030
// watch add/remove of files
3131
const pagesWatcher = chokidar.watch([
32-
path.join(sourceDir, '**/*.md'),
33-
path.join(sourceDir, '.vuepress/components/**/*.vue')
32+
'**/*.md',
33+
'.vuepress/components/**/*.vue'
3434
], {
35+
cwd: sourceDir,
3536
ignored: '.vuepress/**/*.md',
3637
ignoreInitial: true
3738
})

0 commit comments

Comments
 (0)