File tree 2 files changed +9
-2
lines changed
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
16
16
{--minify : If you want the final CSS file to be minified.}
17
17
{--digest : If you want the final CSS file to be generated using a digest of its contents (does not work with the --watch flag).}
18
18
{--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.}
19
20
' ;
20
21
21
22
protected $ description = 'Generates a new build of Tailwind CSS for your project. ' ;
@@ -49,7 +50,10 @@ public function handle(): int
49
50
}
50
51
51
52
Process::forever ()
52
- ->tty (SymfonyProcess::isTtySupported ())
53
+ ->when (
54
+ ! $ this ->option ('no-tty ' ),
55
+ fn ($ process ) => $ process ->tty (SymfonyProcess::isTtySupported ())
56
+ )
53
57
->path (base_path ())
54
58
->run (array_filter ([
55
59
$ binFile ,
Original file line number Diff line number Diff line change 6
6
7
7
class WatchCommand extends Command
8
8
{
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
+ ' ;
10
12
11
13
protected $ description = 'Generates a new build of Tailwind CSS for your project, and keeps watching your files changes. ' ;
12
14
13
15
public function handle ()
14
16
{
15
17
return $ this ->call ('tailwindcss:build ' , [
16
18
'--watch ' => true ,
19
+ '--no-tty ' => $ this ->option ('no-tty ' ),
17
20
]);
18
21
}
19
22
}
You can’t perform that action at this time.
0 commit comments