-
Notifications
You must be signed in to change notification settings - Fork 4.5k
V4 Alpha 27/28 - --watch
command does not work on the input css file (config file)
#14726
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
Comments
--watch
command does not work with the Standalone CLI--watch
command does not work with the Standalone CLI nor the regular CLI
I've updated the title to also include the regular CLI which also doesn't support --watch. I went back to the article announcing v4 and realised it doesn't mention the |
I can't seem to reproduce this, Untitled.3.movTrying to figure out what might be different in our setups — is there any chance you could throw up a whole project that's not working for you so I can test here and try to narrow it down? |
Thanks to your video I've narrowed down the problem a bit more and I have a few new clues. If I change the input css file, the watcher kicks off, says it's "Done in X ms" but the changes are not present in the output file. However, if I create an html file and add an html class to it, the watcher kicks off and the new classes are present in the output.css. So, the watcher is specifically not working on the input file Check out this video (it was too big for GItHub): https://youtu.be/bdup23ipD4c Also I tried this on a different computer and I get the same results. I've put up a repo for ease of reproduction here: You'll just need to add the executables |
--watch
command does not work with the Standalone CLI nor the regular CLI--watch
command does not work on the input css file (config file)
Thanks @thecrypticace ! |
What version of Tailwind CSS are you using?
v4.0.0.alpha28 (also tried on alpha27)
What build tool (or framework if it abstracts the build tool) are you using?
Tailwind CLI executable only.
What version of Node.js are you using?
None. I'm using the Standalone CLI
What browser are you using?
Not relevant
What operating system are you using?
macOS Sonoma 14.6.1
Reproduction URL
Uploading the whole executable to a Git repo doesn't make much sense but here are the instructions to reproduce the issue locally:
cd
into that directorymacos-arm64
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 tailwindcss4alpha28
. I've named the executable with the specific version to make it more explicit@import "tailwindcss";
to theinput.css
file./tailwindcss4alpha28 --input input.css --output output.css --watch
output.css
file. Tailwind classes should be present but are not../tailwindcss4alpha28 --input input.css --output output.css
. Note that this time it's not using the--watch
flagoutput.css
file. Tailwind classes are present.Describe your issue
We've been trying to make the Tailwind 4 alphas work in Rails but noticed that the watch command isn't working when using the Standalone CLI.
rails/tailwindcss-rails#419
After some debugging we realised that the problem is not coming from our Rails implementation but from the executable provided by Tailwind.
The text was updated successfully, but these errors were encountered: