Add ViteHelper fallback for missing frontend assets
This commit is contained in:
14
README.md
14
README.md
@@ -208,6 +208,20 @@ If you prefer manual control:
|
||||
| `make setup-laravel` | Configure auth, API, middleware |
|
||||
| `make setup-all` | Run both setup scripts |
|
||||
|
||||
### Frontend Assets (Vite)
|
||||
|
||||
Build frontend CSS/JS assets:
|
||||
|
||||
```bash
|
||||
# Build assets for production
|
||||
docker-compose run --rm node npm run build
|
||||
|
||||
# Or run Vite dev server (hot reload)
|
||||
docker-compose --profile frontend up -d
|
||||
```
|
||||
|
||||
> **Note:** The template includes a resilient fallback - if assets aren't built, basic styling is provided and a development warning is shown. This prevents the `ViteManifestNotFoundException` error from breaking the app.
|
||||
|
||||
## Laravel Setup (Auth, API, Middleware)
|
||||
|
||||
After installing Laravel, run the interactive setup:
|
||||
|
||||
Reference in New Issue
Block a user