-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
PurgeCSS remove first components class when using whitelist comment #2258
Comments
I can use |
Can you create a simple project that reproduces the issue? We got a lot of issues that require me to manually recreate someone's project from scratch and I unfortunately just don't have time for that so things end up going unfixed. If you can provide something I can clone and start troubleshooting with right away it's much easier for me to find time to diagnose and fix the issue. |
Was able to reproduce this but realizing it sort of doesn't make sense to configure things this way. Using your config, your custom button styles are already protected from purging, because only the I agree this shouldn't break the way it is and we should handle it more gracefully or fail with a clear error, but in the mean time just delete those comments and you're good 👍 |
Hi tailwindlabs team,
I noticed the following point with the building PurgeCSS.
If I import a CSS file before
@tailwind components;
and use PurgeCSS whitelist comment:.container
classes are remove but not responsive container classes.My Sass file
I make different test using exclamation mark in comment, ... same result
I use last tailwindcss 1.7.5, sass, csso.
My
tailwind.config.js
The text was updated successfully, but these errors were encountered: