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

Consider using .search instead of .load for getting config #181

Open
Andarist opened this issue Jan 22, 2019 · 2 comments
Open

Consider using .search instead of .load for getting config #181

Andarist opened this issue Jan 22, 2019 · 2 comments

Comments

@Andarist
Copy link

I assume that postcss config should be project specific - and thus the config loading should search from cwd rather than from the file which has to be transpiled. Or maybe both strategies are valid, but they should be applied for different files - load for files within cwd, search for files outside of it (especially for files inside node_modules)

Without it monorepos with hoisted node_modules (lerna, yarn workspaces) have trouble time loading configs for files located inside node_modules

Related - cosmiconfig/cosmiconfig#166

@chalkygames123
Copy link

chalkygames123 commented Jan 23, 2019

Maybe also related to #159

@chalkygames123
Copy link

Hi @michael-ciniawsky, would you please address this issue? I am facing a relevant problem 😢

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

No branches or pull requests

3 participants