Skip to content

Commit c6797dd

Browse files
committed
feat($core): exclude temp dir from being ignored watched
1 parent 075f470 commit c6797dd

File tree

1 file changed

+4
-1
lines changed
  • packages/@vuepress/core/lib

1 file changed

+4
-1
lines changed

packages/@vuepress/core/lib/dev.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ async function prepareServer (sourceDir, cliOptions = {}, context) {
139139
},
140140
publicPath: ctx.base,
141141
watchOptions: {
142-
ignored: /node_modules/
142+
ignored: [
143+
/node_modules/,
144+
`!${ctx.tempPath}/**`
145+
]
143146
},
144147
historyApiFallback: {
145148
disableDotRule: true,

0 commit comments

Comments
 (0)