Skip to content

Commit

Permalink
fix peek assets publish
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Apr 26, 2024
1 parent 2aacc7b commit ea2c55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Preview/PreviewPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public function register(Panel $panel): void

if ($this->shouldLoadPluginScripts()) {
FilamentAsset::register([
Assets\Js::make(static::ID, __DIR__ . '/../resources/dist/filament-peek.js'),
Assets\Js::make(static::ID, base_path('vendor/pboivin/filament-peek/resources/dist/filament-peek.js')),
], package: static::PACKAGE);
}

if ($this->shouldLoadPluginStyles()) {
FilamentAsset::register([
Assets\Css::make(static::ID, __DIR__ . '/../resources/dist/filament-peek.css'),
Assets\Css::make(static::ID, base_path('vendor/pboivin/filament-peek/resources/dist/filament-peek.css')),
], package: static::PACKAGE);
}
}
Expand Down

0 comments on commit ea2c55a

Please sign in to comment.