-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
What version of Tailwind CSS are you using?
For example: v3.1.8
What build tool (or framework if it abstracts the build tool) are you using?
Phoenix v1.6.11 (latest) with its tailwind plugin v0.1.8.
What version of Node.js are you using?
N/A. The phoenix tailwind plugin uses the tailwind-cli binary from this repo directly.
What operating system are you using?
Linux
Describe your issue
I believe this issue was originally fixed by Jose Valim's PR which added a listener on stdin. If stdin was closed, it was deemed that the parent process must have died, so tailwind process should clean itself up.
However following a reported issue in turborepo, @thecrypticace added a fix that only watches stdin closing when on TTY, citing esbuild's solution as inspiration. However, the esbuild solution was to listen to stdin closing when NOT on TTY because that's how frameworks like Phoenix spawns background processes like esbuild or tailwind, which sounds sensible to me. In any case, I believe this fix has now caused a regression in Phoenix.
While I think esbuild's solution of stdin listening when not on TTY is the correct approach and will fix this issue for Phoenix (though I haven't tested it), unfortunately I don't know what that will mean for turborepo.