Skip to content

Commit

Permalink
Support CSS standalone file
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq authored Dec 30, 2024
1 parent 44d5c8d commit aa288c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ViteManifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ protected function getStyle(string $entry): array
// Return container
$files = [];

// Entry point's output is a standalone css file
if (str_ends_with($chunk['file'], '.css')) {
$files[] = $chunk['file'];
}

// Add entry point chunk's css list
if (array_key_exists('css', $chunk)) {
$files = $chunk['css'];
Expand Down

0 comments on commit aa288c0

Please sign in to comment.