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.
Angular-CLI is the recommended method and is the standard in the Angular 2+ community.
Crete a new project with SCSS
ng new My-New-Project --style=sass
Convert an existing project (CLI less than v6)
ng set defaults.styleExt scss
(must rename all .css files manually with this approach, don't forget to rename in your component files)
Convert an existing project (CLI greater than v6)
"@schematics/angular:component": { "styleext": "sass" }
Step1. Install bulma package using npm
Step2. Open angular.json and update following code
That's it.
To easily expose Bulma’s tools, add stylePreprocessorOptions to angular.json.
BULMA + ANGULAR 6