From e4099a4a636e24c63a29e8bc314aa305685d8ddf Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Sat, 2 Jul 2022 18:46:34 -0300 Subject: [PATCH] Replace the @vite directive entirely --- src/Commands/InstallCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index 15b7b5b..d13515a 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -153,8 +153,8 @@ private function updateAppLayoutsUsingVite() ->each(fn ($file) => File::put( $file, preg_replace( - '/(\s*)(\@vite\(\[.*)\'resources\/js\/app.js\'(.*\]\))/', - "\\1\\2\\3\n\\1", + '/\@vite.*/', + "", File::get($file), ), ))