tailwindcss
tailwindcss copied to clipboard
TailwindCSS is using stderr to log the messages "Rebuilding..." and "Done in [x]ms"
What version of Tailwind CSS are you using?
3.4.3 & next
Describe your issue
I'm working on a library that executes commands, prints errors on red when there is a stderr, and omits the stdout in case is not used the flag --verbose. TailwindCSS is using stderr to log the messages "Rebuilding..." and "Done in [x]ms", so it is causing a miss communication.
In the version 3.4.3:
Looks like this line is the Rebuilding...:
https://github.com/tailwindlabs/tailwindcss/blob/f1f419a9ecfcd00a2001ee96ab252739fca47564/src/cli/build/plugin.js#L278
Looks like this line is the Done in:
https://github.com/tailwindlabs/tailwindcss/blob/f1f419a9ecfcd00a2001ee96ab252739fca47564/src/cli/build/plugin.js#L364
In both cases there is a previous console.error() too.
In the next version:
Case 1: https://github.com/tailwindlabs/tailwindcss/blob/cb17447ff1aadbef482a3daceb5035b7decb6b79/packages/%40tailwindcss-cli/src/commands/build/index.ts#L208
Case 2: https://github.com/tailwindlabs/tailwindcss/blob/cb17447ff1aadbef482a3daceb5035b7decb6b79/packages/%40tailwindcss-cli/src/commands/build/index.ts#L135