Skip to content

Commit e6102c9

Browse files
Update Vite.php
1 parent 5e27d7d commit e6102c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Vite.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ public function resolveCss(array $chunk, string $buildDirectory, array $manifest
459459
$chunks = array_filter($manifest, fn ($value) =>
460460
$value['file'] === $key
461461
);
462+
463+
if (empty($chunks)) {
464+
$chunks[$key] = ['file' => $key];
465+
}
462466

463467
$key = array_key_first($chunks);
464468
$chunk = current($chunks);

0 commit comments

Comments
 (0)