I'm new to Angular and I'm coming from the Ember community. Trying to use the new Angular-CLI based off of Ember-CLI.
I need to know the best way to handle SASS in a new Angular project. I tried using the ember-cli-sass
repo to see if it would play along since a number of core components of the Angular-CLI are run off of Ember-CLI modules.
It didnt work but than again not sure if I just misconfigured something.
Also, what is the best way to organize styles in a new Angular project? It would be nice to have the sass file in the same folder as the component.
Best Solution
Other possible solutions & explanations:
To create a new project with angular CLI with sass support, try this:
You can also use
--style=sass
& if you don't know the difference, read this short & easy article and if you still don't know, just go withscss
& keep learning.If you have an angular 5 project, use this command to update the config for your project.
For Latest Versions
For Angular 6 to set new style on existing project with CLI:
Or Directly into angular.json: