We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb9c28 commit 28d073eCopy full SHA for 28d073e
1 file changed
src/Service/ThemeBuilder/TailwindCSS/Builder.php
@@ -255,6 +255,20 @@ public function watch(
255
256
$process = new Process(['npm', 'run', 'watch'], $tailwindPath);
257
$process->setTimeout(null);
258
+
259
+ if (Process::isTtySupported() && $output->isDecorated()) {
260
+ try {
261
+ $process->setTty(true);
262
+ } catch (\RuntimeException $exception) {
263
+ if ($isVerbose) {
264
+ $io->warning(
265
+ 'TTY mode is not supported in this environment; ' .
266
+ 'running watch without TTY.'
267
+ );
268
+ }
269
270
271
272
$exitCode = $process->run(function ($type, $buffer) use ($output): void {
273
$output->write($buffer);
274
});
0 commit comments