Replies: 1 comment 2 replies
-
In fact the end-user can already enable Chokidar polling by using env var |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! 👋
I'm trying to use Tailwind with JIT support on a Symfony application which use Webpack Encore, inside a virtual machine (Virtualbox/Vagrant), with the following Tailwind configuration:
When I update files from
assets/
, Webpack Encore is able to recompile them (thanks towatchOptions.poll
) and Tailwind JIT is able to generate CSS, everything is great! 🌟However, Twig files from
templates
folder are not handled by Webpack Encore but only by the Chokidar watcher from Tailwind JIT. The issue is that inside a virtual machine, Chokidar is not able to detect any changes from my Twig files.I was able to get it working by manually by adding
usePolling: true
to Chokidar's optionstailwindcss/jit/lib/setupContext.js
Lines 283 to 285 in e721ace
Now the question is, what is the best option for everyone? Adding
usePolling: true
in JIT or add a way to let the end-user configure Chokidar as wanted?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions