mix vitex.install (Vitex v0.1.2)
View SourceInstalls and configures Phoenix Vite in a Phoenix application using Igniter.
This installer:
- Creates vite.config.js with appropriate configuration
- Updates package.json with Vite dependencies and scripts
- Adds the Vite watcher to the development configuration
- Updates the root layout template to use Vite helpers
- Creates or updates asset files for Vite
Usage
$ mix vitex.install
Options
--ssr Enable Server-Side Rendering support
--tls Enable automatic TLS certificate detection
--react Enable React Fast Refresh support
--typescript Enable TypeScript support
--inertia Enable Inertia.js support (automatically enables React)
--yes Don't prompt for confirmations