I want to set the default style extension on my Angular project to scss and whenever new component is created - .scss files to be generated by default. I am using these versions of Angular CLI:
"@angular/cli": "1.7.4",
"@angular/compiler-cli": "5.2.7".
I've manually set a default styleExt - scss in my .angular-cli.json:
"defaults": {
"styleExt": "scss",
"component": {},
"schematics": {
"collection": "@nrwl/schematics"
}
}
However, when I try to create a new app using the:
ng g app admin
or
ng g app admin --style=scss
I still get .css files. I've also tried to set the default styleExt to scss by running
ng set defaults.styleExt scss
but that doesn't change anything. It always generates .css files. It seems like the default value is ignored. Any solution?