Closed
Description
What is the expected behavior?
.scss
files should be generated
What is the current behavior?
.css
files are generated
What are the steps to reproduce?
- ng new --styles=scss material-demo
- no routing module
- ng add @angular/material
- select Custom theme
- add hammerjs
- add animations module
ng g @angular/material:nav
? What should be the name of the component? nav
CREATE src/app/nav/nav.component.css (193 bytes)
CREATE src/app/nav/nav.component.html (934 bytes)
CREATE src/app/nav/nav.component.spec.ts (1061 bytes)
CREATE src/app/nav/nav.component.ts (544 bytes)
UPDATE src/app/app.module.ts (785 bytes)
It doesn't seem to be picking up the default style extension from the workspace.
angular.json
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular CLI: 7.3.6
Node: 10.15.3
OS: darwin x64
Angular: 7.2.9
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.13.6
@angular-devkit/build-angular 0.13.6
@angular-devkit/build-optimizer 0.13.6
@angular-devkit/build-webpack 0.13.6
@angular-devkit/core 7.3.6
@angular-devkit/schematics 7.3.6
@angular/cdk 7.3.4
@angular/cli 7.3.6
@angular/material 7.3.4
@ngtools/webpack 7.3.6
@schematics/angular 7.3.6
@schematics/update 0.13.6
rxjs 6.3.3
typescript 3.2.4
webpack 4.29.0
OS: macOS Mojave
Is there anything else we should know?
This was working in 7.0.0
.
@devversion this seems to be related to #15235.