Implement hot reload (HMR)
crashmax-dev opened this issue · comments
Vitalij Ryndin commented
Inject hot reload script in to proxy script
https://vitejs.dev/guide/api-plugin.html#vite-specific-hooks
if (import.meta.hot) {
import.meta.hot.on('special-update', (data) => {
// perform custom update
})
}