diff --git a/packages/framework/src/Facades/Vite.php b/packages/framework/src/Facades/Vite.php index 27441fdcd53..cadc8ec6dfc 100644 --- a/packages/framework/src/Facades/Vite.php +++ b/packages/framework/src/Facades/Vite.php @@ -22,11 +22,11 @@ public static function assets(array $paths): HtmlString foreach ($paths as $path) { if (str_ends_with($path, '.css')) { - $html .= sprintf('', $path); + $html .= static::formatStylesheetLink($path); } if (str_ends_with($path, '.js')) { - $html .= sprintf('', $path); + $html .= static::formatScriptInclude($path); } } @@ -37,4 +37,14 @@ protected static function checkIfViteWasEnabledViaTheServeCommand(): bool { return env('HYDE_SERVER_VITE') === 'enabled'; } + + protected static function formatStylesheetLink(string $path): string + { + return sprintf('', $path); + } + + protected static function formatScriptInclude(string $path): string + { + return sprintf('', $path); + } }