将nrwl-nx中所有应用程序的OnPush设置为默认值

时间:2020-05-07 09:16:32

标签: angular nrwl-nx

是否可以通过OnPush生成所有组件?

类似于:ng config schematics.@schematics/angular.component.changeDetection OnPush

1 个答案:

答案 0 :(得分:0)

找到了我的问题的解决方案:)

只需添加

"@schematics/angular:component": {
      "style": "scss",
      "changeDetection": "OnPush"
 }

workspace.json的末尾添加"schematics": {}文件:)