I have read the other posts where they have fixed their problem by upgrading to node 10 but that does not seem to help my problem.
I started a new project with Ionic 4.0/Angular 6 and later on upgraded to the latest and greatest Ionic 4.4.0/Angular 7. Now every simple change I make takes 20 seconds to refresh in my browser.
If I start a new project with:
ionic start BuildSpeedTest --type angular
Every change in this new project takes 7 seconds.
I started a new Angular project with
ng new ng-speedtest
and every change takes 1 second to refresh.
Is there anything I can do to speed up my Ionic 4 project?
ionic (Ionic CLI) : 4.4.0 (C:\Users\Luc\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : @ionic/angular 4.0.0-beta.16 @angular-devkit/build-angular : 0.10.6 @angular-devkit/schematics : 7.0.6 @angular/cli : 7.0.6 @ionic/angular-toolkit : 1.2.0 Cordova: cordova (Cordova CLI) : 8.0.0 Cordova Platforms : none Cordova Plugins : no whitelisted plugins (2 plugins total) System: Android SDK Tools : 26.1.1 (D:\dev\android-sdk) NodeJS : v10.12.0 (D:\dev\nodejs\node.exe) npm : 6.4.1 OS : Windows 10
EDIT: I used my fresh new project and started importing my code one piece at a time to see at what point the build time would increase. I have 55 pages in my app (currently all empty, boilerplate pages) and my build time stayed at 7s until I added the paths in app-routing.module.ts (I guess the pages’ weights only kick in the first time you refer to their module), then my build time spiked up to 20s.
So is this just a question of machine power? (CPU, HDD access speed & RAM) or is there something else I can do to speed things up?