-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support to resolve index.css #83
Comments
Hi, I guess you would like to use the shortcuts in the Thank you for your interest. |
Hey @sullenor, it's more like actually trying to resolve for a if (lstatSync(filename).isDirectory()) {
filename = join(filename, 'index.css')
} That works just fine, so now I can compose a folder and it will resolve to the If you want, I can implement this properly (with tests) and take in consideration the Does that make to you? |
Actually, I want to move the resolving mechanism to the standalone postcss module and support the approximate resolving algorithm as the require has (check the At the current state I have finished the resolving step and need to finish the step with resolving dependencies in the proper order. So I think I'll be able to show the demo quite soon. |
@lucasmotta hello, I published a beta version to try it out (unfortunately haven't tested it thoroughly yet). You may try it out with It should check the Small implementation details. Require hooks uses now resolve-imports plugin instead of |
@sullenor nice one!! do you have a branch with the code for this beta version? Just trying to figure out what are the new options now. Is there any way to pass options down to the postcss resolve-imports? So one can customise other bits, like the |
@lucasmotta the branch name is demo. Actually the options haven't changed (haven't thought about public api). Mostly, I changed the set of plugins and passed the existing I thought about adding option |
Hey there,
I've been using this library for a while now and it has been working very well.
But I started on a new project, where they organise some of their CSS on folders, like this:
So we can compose like:
That works fine on webpack, but this hook does not try to resolve
index.css
files if the given path is a folder. Is it possible to add such feature? I could try to submit a PR to include this.Let me know!
The text was updated successfully, but these errors were encountered: