Skip to content

Commit

Permalink
Update Vite.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaskleinschmidt authored Mar 5, 2024
1 parent 5e27d7d commit e6102c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ public function resolveCss(array $chunk, string $buildDirectory, array $manifest
$chunks = array_filter($manifest, fn ($value) =>
$value['file'] === $key
);

if (empty($chunks)) {
$chunks[$key] = ['file' => $key];
}

$key = array_key_first($chunks);
$chunk = current($chunks);
Expand Down

0 comments on commit e6102c9

Please sign in to comment.