You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I can confirm. I need (for a small-medium-sized project) 9 to 16 seconds to serve changes if Ionic is integrated. But I think Angular can be optimized, too
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! ionic serve runs ng serve directly which is an Angular command.
As of Ionic 4, Ionic no longer ships with custom Angular build tools. This means any build issues you experience should be considered Angular build issues and should be brought up with the Angular team.
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.
Activity
paulstelzer commentedon Jan 2, 2019
I can confirm. I need (for a small-medium-sized project) 9 to 16 seconds to serve changes if Ionic is integrated. But I think Angular can be optimized, too
romain10009 commentedon Jan 2, 2019
I meant incremental build, the one that happens when you run ionic serve, and you change a line, I clarified my first post.
paulstelzer commentedon Jan 2, 2019
I mean that, too ;) The initial build takes longer for me ;) Edited my comment, too ;)
godenji commentedon Jan 3, 2019
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.
romain10009 commentedon Jan 3, 2019
What I meant is not 4 seconds for a simple change, but less than 300-500 ms would be a juicy target.
paulstelzer commentedon Jan 3, 2019
Yeah, but this is not the task of Ionic, this is a task for Angular ;)
brandyscarney commentedon Jan 3, 2019
Thanks for the issue!
ionic serverunsng servedirectly which is an Angular command.As of Ionic 4, Ionic no longer ships with custom Angular build tools. This means any build issues you experience should be considered Angular build issues and should be brought up with the Angular team.
I'm going to close this as I do not think it is an Ionic issue. Thanks!
romain10009 commentedon Jan 3, 2019
@brandyscarney It seems we need to keep track of this : angular/angular#19058 They have now a ng add to bazelify a build process.
ionitron-bot commentedon Feb 2, 2019
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.