Problem With Hot Reload
I do not know if this is actually possible tp fix in 3.0 due to the way all classes are available out of the box, but felt it was worth establishing as an issue for further work.
I use Tailwind with Blazor .net 6, and one of the biggest advantages of .net 6 is hot reload of code so I do not have to recompile every time I make a change. However with how 3.0 is JIT at all times this causes huge issues with all projects, but new ones especially. Since the values are purged on compile, if I am working on building a new page and using Tailwind CSS I have not used already hot reload will not be able to show the new CSS. I have to stop my debugger and recompile.
In 2.0 I could simply disable JIT until I was ready to publish, so all classes would be available. Something like a debug mode that can be turned on and off, with all the most important classes safelisted (grid, form inputs, colors, etc.) by default might lessen the issue. It would not really solve it though.
Not sure if this is related to the original post but:
I have a nuxt 2 codebase with 150+ components (unable to provide source, sorry).
When I run npm run dev while using Tailwind CSS 3.0.10 or 3.0.11, if I change any file, an infinite loop in terminal fires off, as if the hot reload for nuxt 2 is picking up a changed file (random file name it seems) provided by Tailwind. The only way to stop the loop is to perform a hard kill (CTRL+C) in terminal.
If I downgrade to 3.0.9, the infinite loop goes away.
I used the instructions provided on the Tailwind CSS 3 reference guide to install Tailwind CSS.