Skip to content

Commit

Permalink
fix: watch config file when using srcDir
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 15, 2021
1 parent f52f20e commit 348f19a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ export function createVitePressPlugin(
},

configureServer(server) {
console.log(configPath)
server.watcher.add(configPath)

// serve our index.html after vite history fallback
return () => {
server.middlewares.use((req, res, next) => {
Expand Down

0 comments on commit 348f19a

Please sign in to comment.