Quite slow incremental build performance
See original GitHub issueBug Report
Ionic version:
[x] 4.x
Current behavior: Curently it takes about 3-7 seconds (depending on CPU) to see the updated code after you edit one line in an ionic serve. I have a xps15 with a i7 8750H and CPU is fully available to webpack. I guess it is also a big draw on the battery for our mobile fellow devs.
Expected behavior: As a developer, it is important to see as close to instant feedback ideally of how stuff looks like, would make the Ionic developer experience much better / be a big + for the project. Not too sure if Ionic can improve the webpack process or if we need to wait for angular to use bazel for instance.
Steps to reproduce: Just follow the ionic beta documentation, setup an ionic 4.x.x project with the following command :
ionic start myApp tabs --type=angular
cd ./myApp
ionic serve
Other information:
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.6.0 (C:\Users\romai\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-rc.0
@angular-devkit/build-angular : 0.10.7
@angular-devkit/schematics : 0.7.5
@angular/cli : 7.2.0-beta.2
@ionic/angular-toolkit : 1.2.2 (C:\Users\romai\ideaProjects\gitalye\node_modules\@ionic\angular-toolkit)
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.1, (and 6 other plugins)
System:
NodeJS : v11.6.0 (C:\Program Files\nodejs\node.exe)
npm : 6.5.0
OS : Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (4 by maintainers)
Top GitHub Comments
I work on the backend in Scala, which has a notoriously slow compiler; Ionic + Angular + Webpack is dog slow in comparison, impressive 😃
If you look at, for example, BuckleScript + ReasonML, where a clean build of the entire project is often under 1 second, you have to wonder what’s gone off the rails with the frontend ecosystem at large, where trivial changes cause incremental builds > 10 seconds.
To be fair, Ionic + Angular does everything (js, css, markup), so there’s more work to do – would be nice to trim down incremental builds to the 2-3 second range in order to keep development flow smooth.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.