web-installer
web-installer copied to clipboard
published assets not found when using Vite
when using Vite with 'npm run dev' the provided assets cannot be found..
why not just register FilamentAsset in your WebInstallerServiceProvider?
public function packageBooted(): void
{
parent::packageBooted();
FilamentAsset::register([
Css::make('filament-web-installer', __DIR__ . '/../resources/dist/build/assets/app-369bc0c4.css'),
Js::make('filament-web-installer', __DIR__ . '/../resources/dist/build/assets/app-0d91dc04.js')
], package: 'shipu/web-installer');
}
run:
php artisan vendor:publish --tag=web-installer-assets