Skip to content

Commit

Permalink
feat($core): exclude temp dir from being ignored watched
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jan 30, 2019
1 parent 075f470 commit c6797dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@vuepress/core/lib/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ async function prepareServer (sourceDir, cliOptions = {}, context) {
},
publicPath: ctx.base,
watchOptions: {
ignored: /node_modules/
ignored: [
/node_modules/,
`!${ctx.tempPath}/**`
]
},
historyApiFallback: {
disableDotRule: true,
Expand Down

0 comments on commit c6797dd

Please sign in to comment.