diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index 4eea6ff..28bde9b 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -157,7 +157,15 @@ private function updateAppLayoutsUsingVite() "\\1\\2\\3\n\\1", File::get($file), ), - )); + )) + ->each(fn ($file) => File::put( + $file, + preg_replace( + '/.*\@vite\(\[\]\).*\n/', + '', + File::get($file), + ), + )) return self::SUCCESS; });