I’ve noticed that the AoT compilation step slows down the build process significantly. Running
ionic serve with beta11, the browser used to refresh after a file save in under 2 seconds, but now running rc0 I find myself waiting over 10 -12 seconds each time. Now I see the following message output which is different from the beta
... [22:16:16] bundle dev update started ... [22:16:26] bundle dev update finished in 9.73 s ...
I assume this
bundle dev step is the AoT compiler. While I understand the advantages of using AoT compilation, it isn’t necessarily advantageous to use it when using
ionic serve and livereload. When developing an ionic app and frequently reviewing small changes in the browser, individual builds are often used one time before being overwritten by the next small change.
It doesn’t make sense to use an optimization step that shaves a fraction of a second off the browser load time in exchange for adding 10 seconds to the build time when that build is going to be used once. It simply increases the total wait time.
Anyhow my point is It would be nice to have an option to turn this step off, either a command line switch or a config file option. I have been trying to figure out how to do this but I haven’t been able to find any documentation on how to do so.
Any help would be appreciated.