postcss-load-config icon indicating copy to clipboard operation
postcss-load-config copied to clipboard

Consider using .search instead of .load for getting config

Open Andarist opened this issue 7 years ago • 2 comments

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 - https://github.com/davidtheclark/cosmiconfig/issues/166

Andarist avatar Jan 22 '19 15:01 Andarist

Maybe also related to #159

chalkygames123 avatar Jan 23 '19 06:01 chalkygames123

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

chalkygames123 avatar Apr 11 '19 10:04 chalkygames123