Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

published assets not found when using Vite #3

Open
eelco2k opened this issue Jan 23, 2024 · 1 comment
Open

published assets not found when using Vite #3

eelco2k opened this issue Jan 23, 2024 · 1 comment

Comments

@eelco2k
Copy link

eelco2k commented Jan 23, 2024

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
Copy link

joukhar commented Apr 4, 2024

run:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants