How to speed up the Angular build process

前端 未结 6 1811
予麋鹿
予麋鹿 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:45

    This reduced my build time to 50%

    "optimization": false,
    "outputHashing": "none",
    "sourceMap": false,
    "extractCss": true,
    "namedChunks": false,
    "showCircularDependencies": false,
    "aot": true,
    "extractLicenses": false,
    "statsJson": false,
    "progress": false,
    "vendorChunk": true,
    "buildOptimizer": false,
    

提交回复
热议问题