Ionic 5 - Angular 11 and Hot Module Replacement

So, I have hacked my way into hmr. In my global ionic cli, file serve.js, line 116 before the return statement in createOptionsFromCommandLine I added:

if (options['hmr']) { separatedArgs.push('--hmr')};

Obviously yet to discover if I opened Pandora’s box this way :slight_smile:

C:\Data\src\we-invest>ionic serve --hmr
> ng.cmd run app:serve --host=localhost --port=8100 --hmr
[ng] NOTICE: Hot Module Replacement (HMR) is enabled for the dev server.
[ng] See https://webpack.js.org/guides/hot-module-replacement for information on working with HMR for Webpack.
[ng] - Generating browser application bundles...
[ng] √ Browser application bundle generation complete.
[ng] Initial Chunk Files

And I confirm, it is working like a charm!!!