mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-06 21:48:53 +08:00
add asset handling and colors to configure.php
This commit is contained in:
@@ -3,8 +3,38 @@
|
||||
namespace VendorName\Skeleton;
|
||||
|
||||
use Filament\PluginServiceProvider;
|
||||
use Spatie\LaravelPackageTools\Package;
|
||||
|
||||
class SkeletonServiceProvider extends PluginServiceProvider
|
||||
{
|
||||
public static string $name = 'skeleton';
|
||||
|
||||
protected array $resources = [
|
||||
// CustomResource::class,
|
||||
];
|
||||
|
||||
protected array $pages = [
|
||||
// CustomPage::class,
|
||||
];
|
||||
|
||||
protected array $widgets = [
|
||||
// CustomWidget::class,
|
||||
];
|
||||
|
||||
protected array $styles = [
|
||||
'plugin-skeleton' => __DIR__ . '/../dist/skeleton.css',
|
||||
];
|
||||
|
||||
protected array $scripts = [
|
||||
'plugin-skeleton' => __DIR__ . '/../dist/skeleton.js',
|
||||
];
|
||||
|
||||
// protected array $beforeCoreScripts = [
|
||||
// 'plugin-skeleton' => __DIR__ . '/../dist/skeleton.js',
|
||||
// ];
|
||||
|
||||
public function configurePackage(Package $package): void
|
||||
{
|
||||
$package->name(static::$name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user