From aa288c078bb193d01d55a556cb56773054202971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?= <12294151+imagoiq@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:30:21 +0100 Subject: [PATCH] Support CSS standalone file --- src/ViteManifest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ViteManifest.php b/src/ViteManifest.php index c3125c3..b70b1a1 100644 --- a/src/ViteManifest.php +++ b/src/ViteManifest.php @@ -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'];