ng config --global defaults.styleExt=scss
Error: config not found
ng set --global defaults.styleExt=sc
For your version you need to do this:
On terminal install this:
npm install node-sass
After this you need to rename .css files in your project to .scss and change all the calls of css to scss in your others files.
ng set --global defaults.styleExt=scss
is deprecated since ng6.
You should use:
ng config schematics.@schematics/angular:component '{ styleext: "scss"}'
If you want to target a specific project (replace {project} with your project's name):
ng config projects.{project}.schematics.@schematics/angular:component '{ styleext: "scss"}'