Reputation: 185
Is there any way to use SCSS with angular 6 library feature?
If I run this command
ng generate library karam --style=scss
I'm getting an error
Schematic input does not validate against the Schema: {"style":"scss","entryFile":"public_api","prefix":"lib","skipPackageJson":false,"skipTsConfig":false} Errors:
Data path "" should NOT have additional properties(style).
Upvotes: 1
Views: 4375
Reputation: 41
Yes we can use scss with Angular 6+. To include scss support to already created angular 6+ project we need to following command:
ng config schematics.@schematics/angular:component.styleext scss
This will add
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
}
}
in your angular.json file (with 6+ version .angular-cli.json file is no longer available)
Upvotes: 2