Skip to content

Instantly share code, notes, and snippets.

@Ademking
Created February 3, 2019 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ademking/7b43d5192f5bcabf9787e4b8c89ce782 to your computer and use it in GitHub Desktop.
Save Ademking/7b43d5192f5bcabf9787e4b8c89ce782 to your computer and use it in GitHub Desktop.
Angular - How to change CSS project to SCSS
  1. run

ng config schematics.@schematics/angular:component.styleext scss

  1. in angular.json, change from (at two places)

"src/styles.css"

to

"src/styles.scss"

  1. rename all .css to .scss

  2. update component.ts files styleUrls from .css to .scss

  3. that's it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment