Skip to content

Impossible to check .module.css files #182

@Aliaksei-Martsinkevich

Description

@Aliaksei-Martsinkevich

I have all css modules files names as following: *.module.css (i.e. Button.module.css) with corresponding tsx file *.tsx (i.e. Button.tsx). And using current template capabilities, I cannot match these files, because cssName equals to Button.module in this case.

I suggest to provide ability to specify resolver as custom function type DocumentPathResolver = (cssFilePath: string) => string | null, which would return path to a document.
(i.e. it should be possible to provide such function via option resolve.documents)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions