Manol T.
Explore posts from serversHow to put Filament assets together with Vite assets?
Hello, I am new to fillament. I will appreciate your help. I want to achieve a single command build, because I have both php artisan filament:assets and vite.
I am with clean installation of Laravel and Filament and I am settuping an application.
When I publish the assets by running php artisan filament:assets they go the public/ directory.
I also have assets defined in vite.config.js from the resources/ directory.
In architecrtural perspective, how can I combine the assets and run only one command for the build (I need dev and prod build)? I am not sure if this is the correct approach, so I would ask for more advanced aproach if there is any.
Sincerely,
Manol.
8 replies