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

Define base directory #10

Open
rovansteen opened this issue Sep 14, 2016 · 3 comments
Open

Define base directory #10

rovansteen opened this issue Sep 14, 2016 · 3 comments

Comments

@rovansteen
Copy link

Is it possible to define a base directory to resolve the constants file from? In the code I see a baseDir option being used but that didn't work for me, also the readme doesn't say anything about it either.

@bathos
Copy link

bathos commented Jun 28, 2017

It may be that it failed for you because this module is using path.join() where it should be using path.resolve() — so rather than supporting relative paths, it actually requires them, and therefore the use of this plugin will make your build script dependent on its PWD. Just ran into this myself.

@karismatic-megafauna
Copy link

Any solution out there for this? Just ran into this problem as well...

@karismatic-megafauna
Copy link

Probably going to go with solution anyways ... https://github.com/css-modules/css-modules/blob/master/docs/values-variables.md :) cheers!

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

3 participants