-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Configure lookup paths for composes/from #13
Comments
Hi, thank you for the feedback. You have to use paths relative to the root path right now, but I'm going to fix that soon. |
@hellosmithy, @dfreeman Fixed, the new version is published |
I am having s similar issue on version
It is looking for the file next to the path of the file that includes the composes, instead of using the How are we supposed to pass the include path to postcss-modules? |
@tarikihm thank you for the feedback! Could you make a minimal reproduceable example, please? |
May not have time to write one until a couple days, for now here is more information: this is related to The way other tools handle this: A quick hacky workaround for me was to add a symlink named |
Should this issue be re-opened? |
@tarikihm I will make an option to set the root directory in a couple of days. For now you can use relative paths for |
Thank you @Outpunk, you may also want to follow postcss/postcss#240 where adding a path option to PostCSS is being discussed. This would allows you to make the new option invisible once PostCSS introduces this. |
I see this is an old issue, but since still open. This plugin solved this problem for me https://www.npmjs.com/package/postcss-modules-resolve-path |
Is this issue under the radar? |
Need this feature. |
* feat(#13): add custom lookup path option * feat: add typing of opt.resolve Co-authored-by: kamilic <[email protected]>
Added in #126 |
I'm still wrapping my head around the standard patterns for how PostCSS plugins consume configuration, but it doesn't look like there's currently a way to pass configuration through to
postcss-import
to configure the root and search path(s) forcomposes foo from 'bar'
lookups.Is this something that it would make sense to add, or am I missing something fundamental? I'm also happy to put together a PR if you have a form factor in mind for how you might want to consume such configuration.
The text was updated successfully, but these errors were encountered: