Home > @lynx-js/rspeedy > Dev > hmr
Whether to enable Hot Module Replacement (HMR).
Signature:
Defaults to true
.
By default, Rspeedy uses HMR as the preferred method to update modules. If HMR is disabled or cannot be used in certain scenarios, it will automatically fallback to Dev.liveReload.
To completely disable both HMR and live reload, set both dev.hmr
and dev.liveReload
to false
. Then, no WebSocket requests will be made to the dev server on the page, and the page will not automatically refresh when file changes.
Disable HMR:
Disable both HMR and live reload: