In Angular 2, when we define a component, we can specify the styleUrls property for a decorator that points to the set of style sheets that will be applied to the component:
@Component({ selector: 'the-app' templateUrl: 'templateFile.html', styleUrls: ['componentStyles.css', 'moreComponentStyles.css'] }) export class TheAppComponent {}
Now, if I want to write these styles using SASS?
I know that I will need to use Gulp or Grunt to translate SCSS stylesheets into plain CSS. But it bothers me how we correctly point Angular to the correct stylesheets.
How can I organize this process of using SASS with Gulp / Grunt along with Angular 2? How to use SASS to write Angular 2 styles?
css angular sass gruntjs gulp
user1620696
source share