Due to the delay in the asynchronous tasks that proxy the hmr process with the CLI the initial load doesnt happen until you CTRL + R reload the initial time. After that HMR is hooked in and its business as usual.
There are no hooks in the CLI HMR ng serve -hmr process to subscribe to or listen for. Unlike the build process ng build the files are hosted from memory, so file events cant trigger the reload on the proxy.
I'm working on a clean solution that doesn't require moving away from the proxy solution.
Due to the delay in the asynchronous tasks that proxy the hmr process with the CLI the initial load doesnt happen until you
CTRL + R
reload the initial time. After that HMR is hooked in and its business as usual.There are no hooks in the CLI HMR
ng serve -hmr
process to subscribe to or listen for. Unlike the build processng build
the files are hosted from memory, so file events cant trigger the reload on the proxy.I'm working on a clean solution that doesn't require moving away from the proxy solution.