Vite plugin for Litestar that integrates Vite's frontend build tool with the Litestar ASGI framework. Current version 0.22.1, supports Python >=3.10, and is actively maintained with frequent releases.
pip install litestar-viteVerified import paths — ran on the pinned version, not inferred.
Basic setup: configure Vite paths and register the plugin on the Litestar app.
Upgrade your frontend project to Vite >=6. See the migration guide.
Install `litestar-inertia` and update your imports from `litestar_vite.inertia` to `litestar_inertia`.
Ensure your Vite dev server is running before starting Litestar, or set `hot_file=None` to disable in production.
Align the CLI argument with your ViteConfig settings, e.g., `litestar assets init --frontend-dir frontend`.