Skip to content

Commit

Permalink
Merge pull request #18 from gRoberts84/bug-fix/scss
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg authored Jun 4, 2024
2 parents 636599c + 00152cf commit 64495d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 64495d6

Please sign in to comment.