-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Background
Laravel Vite is the new default frontend build toolkit, but it has only been added to Laravel v9.19.
But Laravel Mix is still available, and even the doc says that there's a back-and-forth migration path between the two: https://laravel.com/docs/9.x/vite#vite-or-mix
The Vanilo Framework is not supplying any frontend, but the vanilo/admin package requires a frontend build step.
To-do
Vanilo has received several requests to provide Vite installation instructions: vanilophp/admin#2 vanilophp/framework#131
- Extend the documentation with instructions explaining how to build the admin frontend with Laravel Vite
- KEEP Laravel Mix instructions!
- Make sure it works: do a clean install, make the steps as described and have the frontend properly built
- Submit a PR to this repo: https://github.com/vanilophp/docs
Tips:
- Official guide: https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-laravel-mix-to-vite
- Christoph Rumpel's great blogpost that guides you through the same: https://christoph-rumpel.com/2022/6/moving-a-laravel-webpack-project-to-vite
Acceptance Criteria
- The PR contains the steps
- Doing the steps with a clean install results a working admin with proper CSS and JS files built