Ionic Server & Build Taking too long.
Is there any solution to minimize the build time, as it is taking too long for build/serve every time
ionic-app-scripts build [07:19:21] ionic-app-scripts 0.0.23 [07:19:21] build prod started ... [07:19:21] clean started ... [07:19:21] clean finished in 47 ms [07:19:21] copy started ... [07:19:21] ngc started ... [07:19:22] lint started ... [07:19:22] copy finished in 547 ms [07:19:25] lint finished in 3.61 s [07:20:44] ngc finished in 82.59 s [07:20:44] bundle prod started ... [07:21:30] bundle prod finished in 45.86 s [07:21:30] sass started ... [07:21:39] sass finished in 9.26 s [07:21:39] minify started ... [07:21:39] cleancss started ... [07:21:39] uglifyjs started ... [07:22:22] uglifyjs finished in 43.13 s [07:22:22] cleancss finished in 43.13 s [07:22:22] minify finished in 43.15 s [07:22:22] build prod finished in 180.96 s
Hello, thanks for using Ionic! It looks like you are running the production build here, which is not meant to be run often. The dev build that runs when you use ionic serve is much faster as it does not run NGC or Uglifyjs. We are constantly working on getting our build times lower and you will see this improve dramatically in the future. Thanks!
I am just doing ionic serve as i always do. If this build is for production then please let me know, how do I build for development? Where can i switch mode between Production to Development (or vice-versa) .
I'm just doing ionic serve, but still taking more than 20 sec
bundle dev update finished in 20.15 s