We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 647cd37 commit d1704d9Copy full SHA for d1704d9
src/Commands/InstallCommand.php
@@ -44,10 +44,12 @@ private function ensureTailwindConfigExists()
44
to: base_path('tailwind.config.js'),
45
);
46
47
- $this->copyStubToAppIfMissing(
48
- stub: __DIR__ . '/../../stubs/resources/css/app.css',
49
- to: resource_path('css/app.css'),
50
- );
+ 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,
51
+ );
52
+ }
53
54
return self::SUCCESS;
55
});
0 commit comments