mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
+3
-2
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user