Trying to add some global scss file to the project but it is not compiling.
all other scss files of the components are compiling correctly.
eg. app.component.scss is working
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
the angular-cli.json file looks like
"apps": [{
.
.
"styles": [
"styles.scss"
],
.
.
}],
"defaults": {
"styleExt": "scss",
.
.
}
the styles.scss
is not compiling which looks like
body{
background:#f00;
}
i have already tried these but still not working
angular-cli how to add global styles?
angular-cli how to add sass and or bootstrap?
https://github.com/angular/angular-cli/issues/1787
https://github.com/angular/angular-cli/pull/1492
https://github.com/angular/angular-cli/issues/1459
angular-cli version is
1.0.0-beta.24