-
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
Comments and "@import must precede all other statements" #163
Comments
Thanks for your report. Will fix asap |
@Dylan-Chapman Use please postcss-import@7 until fix. |
Will do. Appreciate it! |
8.0.2 released |
Something doesn't seem right : before, when using https://github.com/MoOx/gulp-cssnext, I could use
Now, it yields What is making this a blocking issue, though, is the fact that when I move all Current workaround : I'm forced to duplicate the first |
FYI, |
Good to know. It doesn't explain, however, the rest of unrelated errors - the undefined variables - when I had moved these declarations after the first But, after moving all Thanks for the feedback :) |
So your are good?
|
Yes. This error made me look into https://developer.mozilla.org/en-US/docs/Web/CSS/Syntax#nested_statements (from https://developer.mozilla.org/en/docs/Web/CSS/@import), which clarifies the existence of such a restriction in the position of these statements - in case anyone else was wondering. |
Putting all imports at the beginning of the file, css below the imports fix this issue. |
This CSS:
Produces this error (for the second
@import
statement):This is kicked because of the comment. This shouldn't be the case though, should it?
The text was updated successfully, but these errors were encountered: