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

Use attribute selector for not-prose to avoid over-generating CSS #208

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

adamwathan
Copy link
Member

This PR fixes an issue where using the not-prose class would cause all prose selectors to be included in the final CSS, since not-prose is present in all of those selectors.

Long-term it would be better to make Tailwind itself more intelligent so that it is smart enough to know that it shouldn't generate CSS when not all of the classes in the selector are matched in the content.

@adamwathan adamwathan merged commit 0a4f402 into master Oct 1, 2021
@adamwathan adamwathan deleted the fix-not-prose-overbundling branch October 1, 2021 15:47
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.

1 participant