fix: watch config file when using srcDir

pull/317/head
Evan You 3 years ago
parent f52f20e02f
commit 348f19a537

@ -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) => {

Loading…
Cancel
Save