Skip to content

feat(hmr): reload when HTML file is created/deleted#16288

Merged
patak-cat merged 4 commits intovitejs:mainfrom
sapphi-red:refactor/hmr-handle2
Mar 27, 2024
Merged

feat(hmr): reload when HTML file is created/deleted#16288
patak-cat merged 4 commits intovitejs:mainfrom
sapphi-red:refactor/hmr-handle2

Conversation

@sapphi-red
Copy link
Copy Markdown
Member

Description

When creating/deleting a HTML file, Vite now reloads the page if the page is opened. (e.g. when opening /foo.html and foo.html is created or deleted, a reload will happen)

This PR also merges the HMR handling when a file is created/deleted with the HMR handling when a file is modified.

Split from #16249

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: hmr p2-nice-to-have Not breaking anything but nice to have (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants