Ionic 5 - Angular 11 and Hot Module Replacement

I wonder too

@netkow is the --hmr really passed on to ng by the ionic cli?

It does not show on the ng cli passed

ng.cmd run app:serve --host=localhost --port=8100

Whereas, if I run ng run app:serve --host=localhost --port=8100 --hmr, the HMR is enabled

Secondly, if I run ionic serve --hmr --verbose it seems that the hmr flag is recorded (hmr:true - first line), but later on in ionic:lib:serve not showing up again. (e.g. ionic:lib:serve hmr: true,)

ionic:lib Terminal info: { ci: false, shell: 'C:\\Windows\\system32\\cmd.exe', tty: true, windows: true } +0ms
  ionic:lib CLI global options: { _: [ 'serve' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, hmr: true, project: null, '--': [] } +5ms
  ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
  ionic:lib:project Project details: { context: 'app', type: 'angular', errors: [], configPath: 'C:\\Data\\src\\we-invest\\ionic.config.json' } +0ms
  ionic Context: { binPath: 'C:\\Users\\x\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli\\bin\\ionic', libPath: 'C:\\Users\\x\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli', execPath: 'C:\\Data\\src\\we-invest', version: '6.12.4' } +0ms
  ionic:lib:serve serve options: {
  ionic:lib:serve   '--': [],
  ionic:lib:serve   host: 'localhost',
  ionic:lib:serve   browser: undefined,
  ionic:lib:serve   browserOption: undefined,
  ionic:lib:serve   engine: 'browser',
  ionic:lib:serve   externalAddressRequired: false,
  ionic:lib:serve   lab: false,
  ionic:lib:serve   labHost: 'localhost',
  ionic:lib:serve   labPort: 8200,
  ionic:lib:serve   livereload: true,
  ionic:lib:serve   open: true,
  ionic:lib:serve   platform: undefined,
  ionic:lib:serve   port: 8100,
  ionic:lib:serve   proxy: true,
  ionic:lib:serve   project: 'app',
  ionic:lib:serve   publicHost: undefined,
  ionic:lib:serve   verbose: true,
  ionic:lib:serve   consolelogs: undefined,
  ionic:lib:serve   consolelogsPort: undefined,
  ionic:lib:serve   ssl: undefined,
  ionic:lib:serve   configuration: undefined,
  ionic:lib:serve   sourcemaps: undefined
  ionic:lib:serve } +0ms
  ionic:lib:telemetry Sending telemetry for command: 'ionic serve' [ '--verbose', '--interactive', '--color', '--hmr' ] +0ms
  ionic:lib:hooks Looking for ionic:serve:before npm script. +0ms
Ionic:

   Ionic CLI                     : 6.12.4 (C:\Users\x\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.5.2
   @angular-devkit/build-angular : 0.1100.5
   @angular-devkit/schematics    : 10.0.8
   @angular/cli                  : 10.0.8
   @ionic/angular-toolkit        : 2.3.3

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v14.15.4 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.10
   OS     : Windows 10


1 Like