Description
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:
- Create a new directory for the test
cd
into that directory- Download the version of the executable appropriate for your OS. Assuming your version is
macos-arm64
- run
chmod +x tailwindcss-macos-arm64
- run
mv tailwindcss-macos-arm64 tailwindcss4alpha28
. I've named the executable with the specific version to make it more explicit - Create an empty input.css file
- Create an empty output.css file
- Add
@import "tailwindcss";
to theinput.css
file - Run
./tailwindcss4alpha28 --input input.css --output output.css --watch
- 🚨 Check the
output.css
file. Tailwind classes should be present but are not. - Run
./tailwindcss4alpha28 --input input.css --output output.css
. Note that this time it's not using the--watch
flag - ✅ Check the
output.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.
After some debugging we realised that the problem is not coming from our Rails implementation but from the executable provided by Tailwind.