Skip to content

Commit

Permalink
UPDATE VERSION 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzz123 committed Aug 30, 2024
1 parent b9fad6b commit 2061d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/common/blade/vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function capture(array $entrypoints): string
if ($extension === 'css') {
$links[] = "<link rel='stylesheet' href='$url' type='text/css' />";
} elseif ($extension === 'js') {
$scripts[] = "<script src='$url' defer></script>";
$scripts[] = "<script type='module' src='$url' defer></script>";
}
} else {
// If the 'APP_DEBUG' environment variable is not set to 'true', the application is in production mode.
Expand All @@ -54,7 +54,7 @@ public static function capture(array $entrypoints): string
if ($extension === 'css') {
$links[] = "<link rel='stylesheet' href='$safePath' type='text/css' />";
} elseif ($extension === 'js') {
$scripts[] = "<script src='$safePath' defer></script>";
$scripts[] = "<script type='module' src='$safePath' defer></script>";
}
}
}
Expand Down

0 comments on commit 2061d8b

Please sign in to comment.