Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Generate types w/o using CSS modules?Β #90

@JasonLawrenceDuncan

Description

@JasonLawrenceDuncan

This might be a really dumb question, but is there any way to auto-generate the scss.d.ts files WITHOUT having to turn on CSS modules?

I would like to be able to import a given SCSS file into my React component to use the styles. With the modules: true option, the scss.d.ts file gets generated and my component is happy, but all my site styling totally breaks because it was not set up to use CSS modules.

If I do one run through webpack with modules: true (so that the type files are generated), then do a second run through with modules: false, everybody's happy, my global styling works and my React component can find its type files. However, if I were to change the source SCSS or delete the type file, I'd have to repeat these extra steps to get a new type file, which is annoying.

Let me know if you need more information.

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