Base solution for your next web application
Open Closed

How to make npm start faster? #4182


User avatar
0
manojreddy created

Hi,

Every time I run npm start, it gets stucked on 92% chunk asset optimization. It takes 3-4 mins. Do we have any setting or configuration so that it won't take much time?


4 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi @ManojReddy ,

    This is the common issue about angular cli. Angular team say that new version has more performans and we are using latest version of angular cli, but it also gets stucked on 90% :)

  • User Avatar
    0
    manojreddy created

    So You mean to say that there is no way around to make it faster?

  • User Avatar
    0
    alirizaadiyahsi created

    Yes. It is about angular CLI and size of scripts and styles in project. We always try to keep our code in minimum size. But angular cli still have performance issues.

    Check this: <a class="postlink" href="https://github.com/angular/angular-cli/issues/6490#issuecomment-309014415">https://github.com/angular/angular-cli/ ... -309014415</a>

    And you can get detailed info about compile: <a class="postlink" href="https://github.com/angular/angular-cli/issues/6490#issuecomment-309129085">https://github.com/angular/angular-cli/ ... -309129085</a>

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ManojReddy,

    Normally npm start shouldn't take 3-4 minutes. Can you check which version of angular-cli do you use ?