angular-cli: Changing default styleExt to scss gives me Value cannot be found
I’ve made new project using angular-cli@6.0.2
.
I want to change defalt style file to scss but command ng config defaults.styleExt=scss
gives me Value cannot be found.
How to change default style extention?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (2 by maintainers)
When I run that command
ng config schematics.@schematics/angular:component.styleext scss
I get errorEdit:
I’ve created new project and I know that I have to add to
angular.json
in every projectI found the command, in the stackoverflow site: ng config schematics.@schematics/angular:component.styleext scss. This command will automatically add the “schematics” section halfer mentioned to the angular.json file e generate the next components with scss instead of css
Heya, you can see here how to change the default for component generation: https://github.com/angular/angular-cli/wiki/stories-css-preprocessors
You have to add in in every project: