Skip to content

Commit ea2c55a

Browse files
committed
fix peek assets publish
1 parent 2aacc7b commit ea2c55a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Preview/PreviewPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public function register(Panel $panel): void
2323

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

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

0 commit comments

Comments
 (0)