I am including scss
file as given below:
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
@Component({
....,
styleUrls: ['../../scss/dashboard_admin.scss'],
encapsulation: ViewEncapsulation.None
})
export class DashboardAdminComponent implements OnInit {
.....
It is compiling the SCSS
to CSS
very well, but loading the styles in <styles>
tag, I would like to include them as separate CSS
file.
Here is the SCSS related config from .angular-cli.json
"defaults": {
"styleExt": "scss",
"component": {}
}