Skip to content
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

at-rules now also matches @import/@use #167

Closed
simPod opened this issue Jan 6, 2023 · 4 comments
Closed

at-rules now also matches @import/@use #167

simPod opened this issue Jan 6, 2023 · 4 comments

Comments

@simPod
Copy link

simPod commented Jan 6, 2023

I'd like to distinguish between @use+@import directives and the rest of at-rules.

In v5, I had a rule to keep at-rules at the bottom.

So the order was like

.main {
    display: grid;
    ...
    @include media-breakpoint-down(lg) {
        grid-template-areas: "header" "content";
        grid-template-columns: 100%;
    }
}

however, since v6 it also takes all @import statements and put's them at the end of file which does not play well. The @import usually imports something that's used afterwards so it cannot be at the end of the file.

@hudochenkov
Copy link
Owner

Looks like a regression. I'll take a look in coming days.

@hudochenkov
Copy link
Owner

@simPod I just released 6.0.1. Could you check if it fixed for you?

@simPod
Copy link
Author

simPod commented Jan 6, 2023

Yup, seems like there are no more issues now. Thanks!

@hudochenkov
Copy link
Owner

Thank you for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants