How to improve Ionic cordova run/build time?


#1

Is there any way to improve the build time? Whenever I run ionic cordova run/build androd It would take 5-7 minutes for it to build.

BUILD SUCCESSFUL in 5m 42s
46 actionable tasks: 3 executed, 43 up-to-date
Ionic:

   ionic (Ionic CLI)  : 4.2.1
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : not installed
   Cordova Platforms     : not available
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.2.1, (and 10 other plugins)

System:

   Android SDK Tools : 26.1.1 (C:\Users\81101404\Documents\Downloads\Sdk\Sdk)
   NodeJS            : v10.6.0 (C:\Program Files\nodejs\node.exe)
   npm               : 6.1.0
   OS                : Windows 10

Package.json


    "cordova-android": "7.1.1",

#2
  • Use SSD instead of HDD.
  • Increase hardware memory as much as possible.
  • Upgrade gradle version, and configure cache.

#3

How to upgrade gradle version, and configure cache?


#4

Please ask me after do your best.