Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading CSS modules from a different root #114

Open
mxl opened this issue May 7, 2017 · 0 comments
Open

Loading CSS modules from a different root #114

mxl opened this issue May 7, 2017 · 0 comments

Comments

@mxl
Copy link
Contributor

mxl commented May 7, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant