Answers for "css to scss angular"

CSS
2

change css to scss angular

ng config schematics.@schematics/angular:component.styleext scss
Posted by: Guest on April-22-2020
0

how to import scss file in angular

In the new angular v6, importing sass files is a little different from the previous version.

I just needed to import like this (in a component stylesheet)

@import "~src/sass/variables";    // note: without file extension

Now everything works fine

Thanks all for the help
Posted by: Guest on March-09-2021
0

scss angular

1) Add the `src/styles.scss reference to the 
angular.json build/options/styles section
2) Create a styles.scss file and add it to your src folder
(If you create a new project just choose the scss option and the CLI
will perform these steps for you)
Posted by: Guest on September-22-2021

Browse Popular Code Answers by Language