Skip to content

Commit d4d413a

Browse files
committed
Assets don’t need to be loaded in the CP
1 parent 3b7a628 commit d4d413a

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/ServiceProvider.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,9 @@ class ServiceProvider extends AddonServiceProvider
2727
Fieldtypes\Captcha::class,
2828
];
2929

30-
protected $scripts = [
31-
__DIR__.'/../resources/dist/js/livewire-forms.js',
32-
__DIR__.'/../resources/dist/js/form.js',
33-
__DIR__.'/../resources/dist/js/filepond.js',
34-
__DIR__.'/../resources/dist/js/grecaptcha.js',
35-
];
36-
37-
protected $stylesheets = [
38-
__DIR__.'/../resources/dist/css/livewire-forms.css',
39-
__DIR__.'/../resources/dist/css/filepond.css',
30+
protected $publishables = [
31+
__DIR__.'/../resources/dist/js' => 'js',
32+
__DIR__.'/../resources/dist/css' => 'css',
4033
];
4134

4235
public function bootAddon()

0 commit comments

Comments
 (0)