fix: glob patterns error on windows (close: #348) (#400)

This commit is contained in:
Liu Xinyu
2018-05-11 23:43:48 +08:00
committed by ULIVZ
parent f61bfdd0ee
commit ab53998c01
+3 -2
View File
@@ -29,9 +29,10 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
// watch add/remove of files
const pagesWatcher = chokidar.watch([
path.join(sourceDir, '**/*.md'),
path.join(sourceDir, '.vuepress/components/**/*.vue')
'**/*.md',
'.vuepress/components/**/*.vue'
], {
cwd: sourceDir,
ignored: '.vuepress/**/*.md',
ignoreInitial: true
})