How to reduce angular application build time?

前端 未结 2 1606
感动是毒
感动是毒 2021-02-06 10:11

Index:

I am using angular cli - 7 and I am going to tell how to reduce the build time as per my knowledge.

Problem:

Now the days, lot of users and devel

相关标签:
2条回答
  • 2021-02-06 10:55

    After analyzing, now the application is working very well without any problem and also each and every build's are completed within 35-40 mins(before it was taken around 2 hours).

    So I found the answer from myself/my-application and I am 100% sure those (79%-80% and 90%-92%) changes are not to going to impact your applications.

    0 讨论(0)
  • 2021-02-06 10:57

    Copied Answer From : https://github.com/angular/angular-cli/issues/17874#issuecomment-640568824

    ConcatenateModules is used for scope hoisting, which results in 2 things, smaller bundle sizes and faster code execution in the browser.

    If really want to disable concatenateModules which is not recommended you can use ngx-build-plus.

    From a CLI point of view, exposing a way to disable concatenateModules is out of scope, because we wouldn't like users to opt-out from key runtime performance and bundle size optimisations.

    Read More

    0 讨论(0)
提交回复
热议问题