angular cli generate component in library doesn't create scss file

Viewed 732

I created a new library today by running the create project command first:

ng new situ-angular-components --createApplication=false --skipTests=true --prefix=situ --style=scss

Then I created the library:

ng g library situ-angular-components

I expected that when I run ng g c footer it would create the component without the test file and with a SCSS file, but it doesn't:

enter image description here

Does anyone know why?

1 Answers

Open you angular.json and check the schematics/angular:component tree

It should be like this

   "schematics": {
        "@schematics/angular:component": {
          "style": "scss",
          "prefix": "app"
        }
      },
Related