max2020 max2020 -3 years ago 250
Javascript Question

Angular CLI add SASS after the project has been created

I have an Angular 4 project created using the Angular CLI.

I know that when you are using the Angular CLI you can create a project that uses SASS like this:

ng new ProjectName --style=sass


My question is: "Can I use the Angular CLI to install SASS after a project has been already created without it?"

Answer Source

You can set it to style with ng set after installing node-sass

npm install node-sass --save-dev 

ng set defaults.styleExt scss

Taken from here: Angular CLI SASS options

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download