|
|
@ -60,10 +60,6 @@ class ViteBundler extends Bundler |
|
|
|
*/ |
|
|
|
public function getEntrypointStylesheets(string $entrypointName): string |
|
|
|
{ |
|
|
|
if ($this->isViteDevEnabled()) { |
|
|
|
return ''; |
|
|
|
} |
|
|
|
|
|
|
|
$entrypoint = $this->getViteEntrypoint($entrypointName); |
|
|
|
|
|
|
|
$stylesheetTags = collect(); |
|
|
@ -85,7 +81,7 @@ class ViteBundler extends Bundler |
|
|
|
return $stylesheetTags->implode(PHP_EOL); |
|
|
|
} |
|
|
|
|
|
|
|
private function getStylesheetTag(string $href): string |
|
|
|
public function getStylesheetTag(string $href): string |
|
|
|
{ |
|
|
|
return sprintf( |
|
|
|
'<link rel="stylesheet" href="%s">', |
|
|
@ -93,7 +89,7 @@ class ViteBundler extends Bundler |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
private function getScriptTag(string $entrypointName, ViteEntrypoint $entrypoint): string |
|
|
|
public function getScriptTag(string $entrypointName, ?ViteEntrypoint $entrypoint = null): string |
|
|
|
{ |
|
|
|
return sprintf( |
|
|
|
'<script type="module" src="%s" %s></script>', |
|
|
|