Open timkelty opened 6 years ago
I'm guessing this happens when the @import
is nested in any ruleset? Or just at rules?
I'm guessing this happens when the @import is nested in any ruleset? Or just at rules?
As far as the relative module resolution, yes.
This plugin is a wrapper around postcss-import so it might be worth trying that plugin and seeing if you can reproduce the error.
@simonsmith good idea - I'll try that. I started here because it seemed specific to non-relative (node_modules) imports, but I probably need some more repro-cases.
Doesn't convert nested imports for me at all:
main.css
:
@import 'foo';
body {
@import 'bar';
}
foo.css
:
p {
color: red;
}
bar.css
:
button {
color: blue;
}
Output:
p {
color: red;
}
body {
@import 'bar';
}
See https://github.com/tailwindcss/tailwindcss/issues/428
I'm trying to do this:
@responsive
being an at-rule provided by https://github.com/tailwindcss/tailwindcsssuitcss-components-grid
being an import from node_modulesHowever, when it tries to resolve, it always looks locally:
I'm thinking this is because of this behavior from postcss-import:
Any ideas?