Skip to content

Commit

Permalink
fix: glob patterns error on windows (vuejs#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed May 10, 2018
1 parent 21ff612 commit 1f34db9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
console.error(chalk.red(err.stack))
})
}

console.log(path.join(sourceDir, '**/*.md'))
console.log(path.resolve(sourceDir, '**/*.md'))
// 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
})
Expand Down

0 comments on commit 1f34db9

Please sign in to comment.