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

Only emit utility/component variants when those layers exist #7066

merged 1 commit into from Jan 14, 2022


Copy link

@thecrypticace thecrypticace commented Jan 14, 2022

We were previously always emitting a variants layer even if you didn't include @tailwind utilities or @tailwind variants this means we would previously emit variants even in a file that included only @tailwind base;. This has been fixed.

Also, previously we would generate variants like sm:container even when you didn't have @tailwind components in your file. We now only emit variants for utilities/components when you have @tailwind utilities/@tailwind components included.

@thecrypticace thecrypticace force-pushed the fix/variant-optimizations branch 2 times, most recently from c39f9ab to e677f2a Compare January 14, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

1 participant