Skip to content
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

Document the --watch=always flag on the CLI #1835

Open
alilleybrinker opened this issue Jun 18, 2024 · 0 comments
Open

Document the --watch=always flag on the CLI #1835

alilleybrinker opened this issue Jun 18, 2024 · 0 comments

Comments

@alilleybrinker
Copy link

While trying to run the CLI as a subcommand within a project (running from Rust code), I encountered a challenge where the tailwindcss command would exit rather than watching and rebuilding, even with the -w/--watch flag. It turns out by default that if stdin is closed, tailwindcss will close too to avoid becoming a zombie process, and that you can turn off this behavior with the un-documented flag --watch=always. The code for this is here: https://github.com/tailwindlabs/tailwindcss/blob/next/packages/%40tailwindcss-cli/src/commands/build/index.ts#L218-L224

It would be nice if this flag were documented somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant