Skip to content

Commit

Permalink
Replace the @Vite directive entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Jul 2, 2022
1 parent d985849 commit e4099a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<x-importmap-tags />",
'/\@vite.*/',
"<x-importmap-tags />",
File::get($file),
),
))
Expand Down

0 comments on commit e4099a4

Please sign in to comment.