Skip to content

Commit eee27f6

Browse files
committed
No need to remove the config (as that no longer comes installed)
1 parent 94aa1f7 commit eee27f6

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/Commands/InstallCommand.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function handle()
2828
$this->installMiddleware('\Tonysm\TailwindCss\Http\Middleware\AddLinkHeaderForPreloadedAssets::class');
2929
$this->addIngoreLines();
3030
$this->runFirstBuild();
31-
$this->removeUnusedFiles();
3231

3332
$this->newLine();
3433

@@ -39,7 +38,7 @@ public function handle()
3938

4039
protected function phpBinary()
4140
{
42-
return (new PhpExecutableFinder())->find(false) ?: 'php';
41+
return (new PhpExecutableFinder)->find(false) ?: 'php';
4342
}
4443

4544
private function ensureTailwindConfigExists()
@@ -115,7 +114,7 @@ private function appendTailwindStylesToLayouts()
115114
$this->existingLayoutFiles()
116115
->each(fn ($file) => File::put(
117116
$file,
118-
(new AppendTailwindTag())(File::get($file)),
117+
(new AppendTailwindTag)(File::get($file)),
119118
));
120119
}
121120

@@ -184,17 +183,6 @@ private function runFirstBuild()
184183
});
185184
}
186185

187-
private function removeUnusedFiles()
188-
{
189-
$files = [
190-
base_path('tailwind.config.js'),
191-
];
192-
193-
foreach ($files as $file) {
194-
File::exists($file) && File::delete($file);
195-
}
196-
}
197-
198186
private function mainCssIsDefault($appCssFilePath): bool
199187
{
200188
return trim(File::get($appCssFilePath)) === trim(<<<'CSS'

0 commit comments

Comments
 (0)