I experience this issue as well with blank typescript project created via
ionic start myApp blank --v2 --typescript
The recompile time is cca 10 seconds.
With another project which already has cca 15 screens and components, the recompile time is around 30-40 seconds.
Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.22
Ionic App Lib Version: 2.0.0-beta.12
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS
Node Version: v0.12.7
I tried most of the options of webpack devtool option but it has no impact on compile time.
Actually, what are the compile times we expect from
ionic serve? Maybe also other people struggle with 10s reload time, but they find it normal. Personally I believe the reload time should take no more than 100ms for medium size app (up to 30 screens), taking into account the power of nowadays CPUs and amount of RAM (e.g. intel core i3 and 8GB of ram in my case).