Log when exiting due to stdin being closed on watch #14388
oliverpool
started this conversation in
Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Wish: add a log line when
tailwindcss --watch
exists because stdin was closed, with an hint regarding--watch=always
, like:Rationale
Currently
tailwindcss --watch
exits if stdin gets closed:tailwindcss/packages/@tailwindcss-cli/src/commands/build/index.ts
Lines 264 to 266 in 8c6c291
I have a Makefile where multiple targets are started in paralell:
If
dev-tailwind
is afterdev-server
, then it gets a closed stdin (and tailwind exits immediately without error).If
dev-tailwind
is beforedev-server
, then it gets the stdin from my terminal and everything works.It took me a while to understand this. And another while discover the
--watch=always
possibility.Having such a log line would have spared me quite some time (inverting the default behavior would be even better for my usecase, however it would be a breaking change).
Beta Was this translation helpful? Give feedback.
All reactions