I have an application that was build using the Angular CLI, Angular version 11. I have some directives in my application that require specific css classes. Rather than have separate scss files for each directive I would like to add the scss classes to the styles.css contained in the application root. However I can't do this as the styles.css file is css and not scss. Is there a way I can convert this file to scss?
Asked
Active
Viewed 57 times
0
-
2You can simply change the file extension. – Amaury Hanser May 12 '21 at 07:51
-
https://stackoverflow.com/questions/40726081/angular-cli-from-css-to-scss – Chellappan வ May 12 '21 at 08:03
1 Answers
0
I just manually changed the file extension and changed the reference in the angular.json file in the { "architect": { "build : { "styles": } } }
property - so far I have experienced no unexpected behavior or errors

NewToAngular
- 975
- 2
- 13
- 23