-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
JIT ignores Svelte class:directives #3975
Comments
Try to update your Tailwindcss package to the latest version. This issue was already fixed by this PR #tailwindlabs/tailwindcss-jit#183 and tailwindcss-jit has been merged with the core package Otherwise, you have to change the default extractor as described here #tailwindlabs/tailwindcss-jit#71 (comment) |
Should work fine now without a custom extractor 👍 |
@bradlc Sorry to comment on closed issue, but is there something special to do to have it working ? I am using latest version |
@bcharbonnier There is an additional fix from #4187 that hasn't been released yet. I'm still using a custom default extractor for it to work. |
What version of @tailwindcss/jit are you using?
0.1.18
What version of Node.js are you using?
12.18.1
What build tool (or framework if it abstracts the build tool) are you using?
webpack 5, postcss 8, tailwindcss 2.0.4
What browser are you using?
all of them, doesn't matter
What operating system are you using?
doesn't matter (windows, wsl, linux)
Reproduction repository
https://github.com/kkarpeev/svelte-tailwind-template
Hello. JIT skips classes specified in a class: directives in .svelte or html files. Svelte is a top-6 js framework in 2020 (according to some TOPs).
Please, add support for this directive asap.
See this small description (and that's all):
If you try the repo (thanks to @non25) you'll see that jit ignores class:w-4={!active}. This class appears on <button... element in this example.
There are two variants for using this directive:
Thank you in advance!
The text was updated successfully, but these errors were encountered: