Skip to content

Commit e4099a4

Browse files
committed
Replace the @Vite directive entirely
1 parent d985849 commit e4099a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/InstallCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ private function updateAppLayoutsUsingVite()
153153
->each(fn ($file) => File::put(
154154
$file,
155155
preg_replace(
156-
'/(\s*)(\@vite\(\[.*)\'resources\/js\/app.js\'(.*\]\))/',
157-
"\\1\\2\\3\n\\1<x-importmap-tags />",
156+
'/\@vite.*/',
157+
"<x-importmap-tags />",
158158
File::get($file),
159159
),
160160
))

0 commit comments

Comments
 (0)