File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class BuildCommand extends Command
1616 {--minify : If you want the final CSS file to be minified.}
1717 {--digest : If you want the final CSS file to be generated using a digest of its contents (does not work with the --watch flag).}
1818 {--prod : This option combines the --minify and --digest options. Ideal for production.}
19+ {--no-tty : Disables TTY output mode. Use this in environments where TTY is not supported or causing issues.}
1920 ' ;
2021
2122 protected $ description = 'Generates a new build of Tailwind CSS for your project. ' ;
@@ -49,7 +50,10 @@ public function handle(): int
4950 }
5051
5152 Process::forever ()
52- ->tty (SymfonyProcess::isTtySupported ())
53+ ->when (
54+ ! $ this ->option ('no-tty ' ),
55+ fn ($ process ) => $ process ->tty (SymfonyProcess::isTtySupported ())
56+ )
5357 ->path (base_path ())
5458 ->run (array_filter ([
5559 $ binFile ,
Original file line number Diff line number Diff line change 66
77class WatchCommand extends Command
88{
9- protected $ signature = 'tailwindcss:watch ' ;
9+ protected $ signature = 'tailwindcss:watch
10+ {--no-tty : Disables TTY output mode. Use this in environments where TTY is not supported or causing issues.}
11+ ' ;
1012
1113 protected $ description = 'Generates a new build of Tailwind CSS for your project, and keeps watching your files changes. ' ;
1214
1315 public function handle ()
1416 {
1517 return $ this ->call ('tailwindcss:build ' , [
1618 '--watch ' => true ,
19+ '--no-tty ' => $ this ->option ('no-tty ' ),
1720 ]);
1821 }
1922}
You can’t perform that action at this time.
0 commit comments