how to turn off differential loading in Angular v8?

后端 未结 10 1938
暖寄归人
暖寄归人 2020-12-05 02:47

Angular-CLI v8 implemented differential loading. But I don\'t need files built by es5. I want to decrease deploy quantity.

I tried below. But CLI has generated es5 f

10条回答
  •  盖世英雄少女心
    2020-12-05 02:59

    Can add below env variables to disable differential loading features. The below works for Windows

    "build:prod": "set NG_BUILD_DIFFERENTIAL_FULL=true && ng build --prod",

    For Mac

    "build:prod": "NG_BUILD_DIFFERENTIAL_FULL=true; ng build --prod",

提交回复
热议问题