Skip to content

ng generate doesn't initialize component stylesheets with specified styles type #7721

Closed
@avatsaev

Description

@avatsaev

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Versions.

@angular/cli: 1.4.2
node: 8.5.0
os: linux x64
@angular/animations: 4.4.1
@angular/common: 4.4.1
@angular/compiler: 4.4.1
@angular/core: 4.4.1
@angular/forms: 4.4.1
@angular/http: 4.4.1
@angular/platform-browser: 4.4.1
@angular/platform-browser-dynamic: 4.4.1
@angular/router: 4.4.1
@angular/cli: 1.4.2
@angular/compiler-cli: 4.4.1
@angular/language-service: 4.4.1
typescript: 2.5.2

Repro steps.

  • Create a new project with --style=sass

OR

  • Specify in .angular-cli.json

  "defaults": {
    "styleExt": "sass",
    "component": {}
  }

  • Generate a new components with ng g c home

It will generate a component with css stylesheet instead of sass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions