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

Fix consecutive builds with at apply producing different CSS #6999

Merged
merged 3 commits into from Jan 10, 2022

Conversation

thecrypticace
Copy link
Contributor

Previously we were partitioning at rules in CSS when the context was created. However, if the CSS or config didn't change then this wouldn't happen because the context cache wasn't invalidated. This manifested as different CSS being produced in the first build versus subsequent builds. Instead we always partition the rules up front before processing any other tailwind features to ensure we always produce the same CSS.

@thecrypticace thecrypticace changed the title Partition at rules before building context Prevent consecutive builds with at apply from producing different CSS Jan 10, 2022
@thecrypticace thecrypticace changed the title Prevent consecutive builds with at apply from producing different CSS Fix consecutive builds with at apply producing different CSS Jan 10, 2022
@thecrypticace thecrypticace merged commit a891867 into master Jan 10, 2022
@thecrypticace thecrypticace deleted the fix/early-partition-at-apply branch January 10, 2022 17:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants