在angular.json 中新增 (旧版)
defaults: {
        "styleext": "scss"
    }
在angular.json 中新增(新版)

"sourceRoot": "src",
      "projectType": "application",
      "prefix": "app",
      "schematics": {
        "@schematics/angular:component": {
          "style": "scss"
        }
      },
修改
"schematics": {
    "@schematics/angular:component": {
        "styleext": "scss"
    }
} 

发表评论