-
Description 📖vite-ruby dev server seems to be not compatible with tailwindcss jit mode. Adding new classes that should trigger new CSS to be emitted does not do that, resulting in unstyled elements until dev server is restarted. It works fine when building on reload without dev server running. Reproduction 🐞https://github.com/grk/rails-vite-tailwind-repro - instructions in readme Vite Ruby InfoRun
Logs 📜If not providing a reproduction: OutputRun
Screenshots 📷Provide console or browser screenshots of the problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
A fix in Vite has been merged, and should be released in Hi Grzesiek, thanks for reporting. Since files are being scanned correctly during startup, it's likely to be a bug in the watcher or the dependencies that Tailwind sets up in JIT mode. Notice how Vite.js does not include an update for When the watcher detects changes as expected, that same message would include an Since the problem does not occur within the gem or JIT mode is experimental, I'd recommend that you ask for help in a Tailwind forum, or report the bug in the Tailwind tracker. |
Beta Was this translation helpful? Give feedback.
-
@grk As a temporary workaround, you could downgrade |
Beta Was this translation helpful? Give feedback.
@grk As a temporary workaround, you could downgrade
vite
to2.4.2
, it seems like the problem withbase
was introduced in Vite2.4.3
.