diff --git a/src/Assets.php b/src/Assets.php index 0a2530a..a93523b 100644 --- a/src/Assets.php +++ b/src/Assets.php @@ -70,7 +70,7 @@ public function inject(array|string $entrypoint, array $customOptions = []): voi add_action($action, function () use ($entries, $options) { array_map(function($entry) use ($options) { - $tag = str_ends_with($entry, '.css') + $tag = str_ends_with($entry, '.css') || str_ends_with($entry, '.scss') ? array_key_first($this->getStyleTags($entry, $options)) : $this->getScriptTag($entry, $options);