Shipu / web-installer

Laravel Web Installer
50 stars 13 forks source link

published assets not found when using Vite #3

Open eelco2k opened 8 months ago

eelco2k commented 8 months ago

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');
    }
joukhar commented 6 months ago

run:

php artisan vendor:publish --tag=web-installer-assets