How to speed up the Angular build process

前端 未结 6 1820
予麋鹿
予麋鹿 2020-12-23 11:17

After making some changes in my TypeScript files, each build takes over 20 minutes. I run this command: ng build --output-path=..\\..\\static\\angularjs.

<
6条回答
  •  太阳男子
    2020-12-23 11:59

    My app took 28secs to build, but I've reduced the time to 9secs. Usings this flag

    ng build --source-map=false
    

    you can see the difference in time comparing the time:

    ng build --stats-json 
    
    ng build --stats-json --source-map=false
    

    source map is intended only for debugging, Hope it helps

提交回复
热议问题