-
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
Half value class(f.e. p-0.5) automatically add same zero class(p-0) #9354
Comments
yield /[^<>"'`\s.(){}[\]#=%$]*[^<>"'`\s.(){}[\]#=%:$]/g
// ╰─────── ╰──────── I try to remove these dot here of I think we can provide some extension-specific extractor(html, md, tsx...) so we can also reduce the number of candidates to get some performance improvement |
Hey! So, at least for now, this behavior is an intentional side-effect of supporting both Slim and class lists in backticks (like used in markdown, for example) — which is why the tests pointed out by @lzt1008 fail. Since Tailwind CSS does not parse your source files, at least when reading Slim files, It may be in the future that we'd provide more specific extractors but that even can be quite complicated because how syntax for different languages can be mixed. For instance, a pure HTML extractor may not pick up everything that would be needed inside |
I understand it will be solved with the new parser, but if it is not, some alternative solutions would be:
|
Tailwindcss 3.1.8
Engine: playground/vite + react
Describe: if you add a class for a half value, then the class of the zero value automatically goes into the bundle
The text was updated successfully, but these errors were encountered: