Base solution for your next web application
Open Closed

Speed up Angular 2 compiles #2411


User avatar
0
paradoxit created

For dev only, how do I speed up Angular 2 compilation? Currently it's taking 20-30 seconds to refresh any changes.

In dev I don't really care about compressing the content or running lints.

Any advice would be great!

Thanks, David


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    While developing Angular2 version, this helped us <a class="postlink" href="https://github.com/felixrieseberg/ember-cli-windows">https://github.com/felixrieseberg/ember-cli-windows</a>.

  • User Avatar
    0
    paradoxit created

    Thanks, we tried this but not much of a performance gain.

    On average compiles are 30s long, how long is this taking for other people? What can be done to get this down?

    Thanks,

    David

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    First build is also slow for me but rebuilds take most of the time under 10 seconds. According to some comments on angular-cli's issues, latest versions (v1.0.0-beta.28 and above) made some improvements on performance but we didn't try this yet. You can give it a try but upgrading angular-cli might bring some other problems.