I have created an angular library project where I want to use SCSS for styles.
So I have configured
ng config schematics.@schematics/angular:component.styleext scss
and this made an entry to angular.json file
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
}
}
Now I am using materialize-css UI library in my library components. And it requires to import its SCSS file.
I am not seeing styles.scss file where I can import this and my components and other common styles?
I tried creating one and making entry into angular.json
"styles": ["projects/library_name/styles.scss"]
Under projects
-> library_name
-> architect
-> build
-> options
but this is showing error while building the library project
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(styles).
Update
I got this, addressing the same issue if it helps!
"style" : "scss"
– Defeatism"styles": ["node_modules/bootstrap/dist/css/bootstrap.min.css"]
– Spout