-
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
All imports after some others CSS declaration should warn and be skipped. #176
Comments
Per CSS specifications, import should be at top of a file. Just move your definitions or root and custom media after import. You are in C(ascading)SS, not in a programming language. custom media and custom props can be defined after a usage, no problem. All import should warn and be skipped, not just the first poke @TrySound. |
It's true for CSS specifications, but it is not the case here, before parsing. Following the specifications is very good, but having a bit of flexibility, like here, too ;) |
You do not benefit of anything by defining some rules before. The opposite: if an import define it own value, you will not have yours defined. |
Yeah, you're right :) |
What about imports nested inside rules, which is valid in cases like Sass, and with PostCSS (with I don't see any reason to have this restriction in the plugin; we are not in CSS, we are in a superset of CSS. |
@LPGhatguy postcss-import never supported nested imports, and never will. We would like to follow spec in most cases. |
Everything worked on v7. Since v8 it doesn't work anymore.
results to:
Source files: https://github.com/Frontools/web-starter-kit/tree/master/source/styles
The
build.js
script is launched thanks to node scripts in https://github.com/Frontools/web-starter-kit/blob/master/package.jsonThe text was updated successfully, but these errors were encountered: