We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76082e3 commit 3bd55bcCopy full SHA for 3bd55bc
packages/vite/src/node/server/hmr.ts
@@ -579,7 +579,7 @@ export async function handleHMRUpdate(
579
}
580
if (!options.modules.length) {
581
// html file cannot be hot updated
582
- if (file.endsWith('.html')) {
+ if (file.endsWith('.html') && environment.name === 'client') {
583
environment.logger.info(
584
colors.green(`page reload `) + colors.dim(shortFile),
585
{
0 commit comments