From d1704d9360466357b8971006d45b247e4a05075b Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Sun, 12 Nov 2023 15:20:38 -0300 Subject: [PATCH 1/2] Fix not overriding default resources/css/app.css files when empty --- src/Commands/InstallCommand.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index 04f370a..49f7e47 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -44,10 +44,12 @@ private function ensureTailwindConfigExists() to: base_path('tailwind.config.js'), ); - $this->copyStubToAppIfMissing( - stub: __DIR__ . '/../../stubs/resources/css/app.css', - to: resource_path('css/app.css'), - ); + if (! File::exists($appCssFilePath = resource_path('css/app.css')) || empty(trim(File::get($appCssFilePath)))) { + $this->copyStubToApp( + stub: __DIR__ . '/../../stubs/resources/css/app.css', + to: $appCssFilePath, + ); + } return self::SUCCESS; }); From fdd01679f44e09aeae0e8aa827357345ae477ca8 Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Sun, 12 Nov 2023 15:21:47 -0300 Subject: [PATCH 2/2] Bump default tailwindcss CLI version --- config/tailwindcss.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/tailwindcss.php b/config/tailwindcss.php index af80d47..560bd2a 100644 --- a/config/tailwindcss.php +++ b/config/tailwindcss.php @@ -39,5 +39,5 @@ | @see https://github.com/tailwindlabs/tailwindcss/releases to know the version availables. | */ - 'version' => env('TAILWINDCSS_CLI_VERSION', 'v3.3.2'), + 'version' => env('TAILWINDCSS_CLI_VERSION', 'v3.3.5'), ];