watchHandle('mix'); } /** * Create the command array to create a Process object with */ protected function createCommand(string $configPath): array { $command = parent::createCommand($configPath); // @TODO: Detect Homestead running on Windows to switch to watch-poll-options instead, see https://laravel-mix.com/docs/6.0/cli#polling $command[] = '--watch'; return $command; } /** * Handle the cleanup of this command if a termination signal is received */ public function handleCleanup(): void { $this->newLine(); $this->info('Cleaning up: ' . $this->getPackagePath($this->watchingFilePath)); $this->afterExecution(base_path($this->watchingFilePath)); } }