Skip to content

Commit

Permalink
fix: always reload when html is edited in middleware mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 20, 2021
1 parent d9afa8d commit 85c89be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/server/hmr.ts
Expand Up @@ -112,7 +112,9 @@ export async function handleHMRUpdate(
})
ws.send({
type: 'full-reload',
path: '/' + slash(path.relative(config.root, file))
path: config.server.middlewareMode
? '*'
: '/' + slash(path.relative(config.root, file))
})
} else {
// loaded but not in the module graph, probably not js
Expand Down

0 comments on commit 85c89be

Please sign in to comment.