6

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 1

5

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Are you sure It is going to work because still style file name ( style.scss ) will remain same?
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.