Skip to content

Commit

Permalink
Fix empty entry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoson committed Feb 15, 2021
1 parent b09cf83 commit f3d5db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function css($entry = null, array $options = null): ?string {
*/
public function js($entry = null, $options = []): ?string {
$file = $this->isDev()
? $this->assetDev($entry)
? $this->assetDev($entry ?? option('arnoson.kirby-vite.entry'))
: $this->assetProd($this->getManifestProperty($entry, 'file'));

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

0 comments on commit f3d5db4

Please sign in to comment.