Search code examples
angularangular-cli

Angular CLI command to skip creating the SCSS file


The following command in Angular CLI generates a new component with 3 files - HTML, TS and SCSS.

ng g c file --skip-import --spec false

I just need the HTML and CSS. I'm already skipping the spec file.. How do I tell it to skip creating the SCSS?


Solution

  • You need the option inlne styles, e.g.

    ng g c file -is -spec false