Mistakenly I have generated my angular project to scss style but I wanna use css style So there is any way how we can convert scss style to css from Angular-cli ?
1 Answer
you can change angular.json file manually:
"schematics": {
"@schematics/angular:component": {
"style": "css"
}
...
}
or if you just created it, simply delete it and generate a new one with css.
2 Comments
Deepak Gupta
Are you sure It is going to work because still style file name ( style.scss ) will remain same?
Luis Vargas
you can rename de file to styles.css, try with that. Another thing to say is that scss recognize all css, so you can write normal css in the scss file and is going to work