Skip to content

Commit

Permalink
fix: glob patterns error on windows (close: #348) (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy authored and ulivz committed May 11, 2018
1 parent f61bfdd commit ab53998
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit ab53998

Please sign in to comment.