web-installer icon indicating copy to clipboard operation
web-installer copied to clipboard

published assets not found when using Vite

Open eelco2k opened this issue 1 year ago • 1 comments

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');
    }

eelco2k avatar Jan 23 '24 11:01 eelco2k

run:

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

joukhar avatar Apr 04 '24 13:04 joukhar