Skip to content

Loading CSS modules from a different root #114

Open
@mxl

Description

@mxl

I use CSS modules with TypeScript (with https://github.com/Quramy/typed-css-modules).
TypeScript modules are transpiled to separate directory (dist/tsc). This does not copy CSS modules to that directory so when I try to run browserify with css-modulesify plugin (rootDir option is dist/tsc) I get Cannot find module error.

Of course, if I copy CSS modules to dist/tsc before running broweserify then it works fine but it would be nice to omit this step to make build faster.

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