We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c86a0c2 commit 96afb5cCopy full SHA for 96afb5c
packages/kirby-vite/Vite.php
@@ -201,6 +201,13 @@ public function css(
201
true
202
);
203
204
+ // If we are in dev mode and this is not a style, e.g.:
205
+ // `vite()->css('index.js')`, the corresponding js entry will inject the
206
+ // css and we don't have to do anything.
207
+ if ($this->isDev()) {
208
+ return $entryIsStyle ? css($this->assetDev($entry)) : null;
209
+ }
210
+
211
$file = null;
212
if ($entryIsStyle) {
213
$file = $this->manifestProperty($entry, 'file', $try);
0 commit comments