Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class InstallCommand extends Command
tailwindcss:install
{--download : If you also want to download the Tailwind CSS binary.}
{--cli-version= : You may override the configured version for the CLI.}
{--no-tty : Disables TTY output mode. Use this in environments where TTY is not supported or causing issues.}
';

protected $description = 'Installs the Tailwind CSS scaffolding for new Laravel applications.';
Expand Down Expand Up @@ -171,13 +172,9 @@ private function addIngoreLines(): void

private function runFirstBuild(): void
{
Process::forever()->tty(SymfonyProcess::isTtySupported())->run([
$this->phpBinary(),
'artisan',
'tailwindcss:build',
], function ($_type, $output): void {
$this->output->write($output);
});
$this->call('tailwindcss:build', [
'--no-tty' => $this->option('no-tty'),
]);
}

private function mainCssIsDefault($appCssFilePath): bool
Expand Down