-
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
Doesn't watch style changes in @layer (Angular) #3959
Comments
Seems it not related to the recursive @layer, it's still not working even after change the code to following, close it with further research. @layer components {
.s-text-primary {
@apply tw-text-blue-30;
}
.tw-dark .s-text-primary {
@apply tw-text-gray-05;
}
} |
Same issue here. I noticed that if I make a change (besides the change inside the
|
same, using Angular13, must restart server and then will take effect |
Can confirm with a Vue3 + Vite setup. Since JIT is always enabled now, changes inside This only appears to be happening when using SCSS instead of regular CSS. |
I believe that it's reproducible not only for the |
For me it works when setting the tailwind classes in the scss file via @apply whereas setting the tailwind classes in the html does not work So: Whereas: (Angular 12.2.1, Tailwind 3.0.15) |
I tried to downgrade to previous versions and noticed that with version "3.0.7" everything seems to work fine.
|
Hey! Thank you for your bug report! I believe that this should all be fixed in the newer versions of Tailwind CSS. If this is still an issue try to upgrade to the latest version, otherwise open a new issue with a reproduction 👍 |
This is not fixed!! latest angular latest tailwind... very frustrating! I have to manually touch the tailwind.config.js for the classes to be applied!!!!! |
I was having the save problem, where updating the tailwind classes on an html element didn't get reflected in watch mode, except if I reloaded the server or modified a css/scss file or config file.
|
What version of @tailwindcss/jit are you using?
v0.1.17
What version of Node.js are you using?
v12.18.2
What build tool (or framework if it abstracts the build tool) are you using?
@angular-devkit/[email protected] [email protected]
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://github.com/ivanchenhz/angularTailwindJit
To reproduce, try to modify something in the following code
In @layer section, it won't take effect unless re-start the dev server
Out @layer it works fine ...
The text was updated successfully, but these errors were encountered: