Skip to content

Stencil CLI component generation config #2348

Closed

Description

@nathanb21

Stencil version:

I'm submitting a:
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
npx stencil generate app-component provides toggles for a .css, .spec.tsx, .e2e.ts options.

As we are using @stencil/sass we manually rename the .css file to .scss.

I also use scoped instead of shadow so also change these both in the .tsx file.

Expected behavior:
At project generation, and within a config, the ability to specify the type of CSS files that are generated and other configurable options that could be used (custom templates?).

Activity

  1. JasonGrant commented on Apr 30, 2020

    @JasonGrant

    I would love to not have to change css to scss every time I create a new component

  2. manucorporat commented on May 6, 2020

    @manucorporat
    Contributor

    We want to keep it simple, we encourage developers to use .css when possible, not plans for the moment to add other format options in the time being.
    That would involve a lot new moving parts, new issues, more things to support out of our control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions