Skip to content

ng new doesn't configure inline template and style options in .angular-cli.json #8004

Closed
@textbook

Description

@textbook

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.5
node: 6.9.1
os: darwin x64
@angular/animations: 4.4.4
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.5
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.3.4

Repro steps.

$ ng new whatever --inline-style true --inline-template true --style scss

The log given by the failure.

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

Desired functionality.

  "defaults": {
    "styleExt": "scss",
    "component": {
      "inlineStyle": true,
      "inlineTemplate": true
    }
  }

Mention any other details that might be useful.

Obvious workaround is to also set these options when generating a component, per the wiki. Also note that this won't actually help until #7829 is fixed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfreq2: mediumtype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions