-
Notifications
You must be signed in to change notification settings - Fork 115
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
Relative imports don't work if no from option given #10
Comments
If you look at fixtures, relative import are supposed to work (if you have provide the |
@MoOx My bad, I didn't know the Looks like the import plugin prepends the |
We don't have the current stylesheet information since postcss process css string. That's why we use from option. |
Makes sense. You may want to explicitly point this out in the readme so that folks like me don't bug you with issues all day. :P Keep up the good work. |
I'll let that issue open to remind me that ;) |
Let's assume the following project structure:
./gulpfile.js
./css/main.css
./css/lists.css
main.css
contains the following line:@import "lists.css";
This currently doesn't work without passing
{ path: ['css'] }
to postcss-import. This is probably related to #7, but I feel like relative imports should just work despite of what postcss-import does after it decided that it's not a relative import (e.g., look fornode_modules/lists.css/
or something like that).The text was updated successfully, but these errors were encountered: