diff --git a/Vite.php b/Vite.php index 3fe9f39..f90d230 100644 --- a/Vite.php +++ b/Vite.php @@ -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);