-
Notifications
You must be signed in to change notification settings - Fork 186
Enable polling support for tailwindcss cli #168
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
Conversation
* Add new task to invoke tailwindcss with the polling (-p) cli option
* Added optional parameter "p" to enable polling * Default behavior will remain unchanged
* Changed the opsstring definition
Waiting for TailwindCSS to ship the polling feature. The feature was omitted in the recent v3.0.24 release. |
@thebub I have a new rails 7 application with tailwindcss installed. None of my CSS changes are reflected when reloading my pages. Is this a current limitation to working with WSL2? Or perhaps these issues are separate. Thanks. |
@daveomcd I believe this is related to the wsl2 problem mentioned before, try moving your project files to your linux home folder (e.g. |
@daveomcd I suggest you follow the recommendation by @hyphenized and provide feedback, whether the problem is resolved or not. |
Hey @thebub, thank you for the response. I figured out the issue I was seeing wasn't a problem with WSL2. It was because I ran |
Polling was added upstream in 3.1.0. Suggested by #168
Polling was added upstream in 3.1.0. Suggested by #168
v2.0.13 has this feature, please see the README for an explanation. |
Thanks @flavorjones. I wasn't aware of the possibility to add options as well. This is a way better solution! |
Reasoning
Due to an WSL2 issue (microsoft/WSL#4739) the watch mechanism of the tailwindcss cli will not work on all potential developer setups. Especially when using vscode-devcontainers and keeping the code in the mounted directory. (assumed default behavior)
The recommended work around is to use polling instead of the normal inotify based watch mechanism.
Changes