How can I use SASS in angular project?

When you are creating your project with angular cli, you can use ng newcommand. It generates all your components with predefined sass files.

ng new My_New_Project --style=sass

But if you are changing your existing style in your project then use ng set command,

ng set defaults.styleExt scss

July 17, 2022
281