Skip to content

Commit f3d5db4

Browse files
author
arnoson
committed
Fix empty entry bug
1 parent b09cf83 commit f3d5db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Vite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function css($entry = null, array $options = null): ?string {
165165
*/
166166
public function js($entry = null, $options = []): ?string {
167167
$file = $this->isDev()
168-
? $this->assetDev($entry)
168+
? $this->assetDev($entry ?? option('arnoson.kirby-vite.entry'))
169169
: $this->assetProd($this->getManifestProperty($entry, 'file'));
170170

171171
if ( $this->isDev() || option('arnoson.kirby-vite.module')) {

0 commit comments

Comments
 (0)