I've began working on an Angular CLI generated project and realized I forgot the --style=sass
flag.
Is there any way to convert my project to enable SASS with the Angular CLI?
In Angular 6+ if you are getting console warning after doing ng config defaults.styleExt = scss
such as below is because of single dashes are not supported anymore
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(defaults).
You can run below command to change schematics
ng config schematics.@schematics/angular:component.styleext scss
You need to do two manual changes
.css
file to .scss
in the root folder"styles": ["src/styles.scss"],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With