From 348f19a537930b1d4c7272e05e91edcb72219f34 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 14 Jun 2021 23:39:48 -0400 Subject: [PATCH] fix: watch config file when using srcDir --- src/node/plugin.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index d84ba0d34914..8971b6b94c7e 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -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) => {