Didn't see this mentioned in docs, so:
To enable HMR:
Append ?hotreload=true
to the page URL (assuming this only works in dev mode)
Example:
http://localhost:8081/index.html?hotreload=true
From Runtime.js source:
const HOTRELOAD_FLAG = /\bhotreload\b/;
if (HOTRELOAD_FLAG.test(location.search)) {
enableHotReload = true;
if (bundleURL.indexOf('?') > -1) {
bundleURL += '&hot=true';
} else {
bundleURL += '?hot=true';
}
}
}