Skip to content

Commit 5d74ef1

Browse files
committed
Tweaks bootstrap pattern to insert the imports
1 parent fa6bb8b commit 5d74ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/TurboInstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function publishJsFiles()
6060
File::put(
6161
$appJsFile = resource_path('js/app.js'),
6262
preg_replace(
63-
'/(import [\'"](?:\.\/)?bootstrap[\'"];?)/',
63+
'/(.*[\'"](?:\.\/)?bootstrap[\'"])?;?)/',
6464
<<<JS
6565
\\1
6666
{$imports}

0 commit comments

Comments
 (0)