@celsian/vura-vite-plugin
v0.5.14
Published
Vite integration for Vura routes and pages
Maintainers
Readme
@celsian/vura-vite-plugin
Vite plugin for Vura — API middleware, route watching, and SSR page handling in development.
What it does
@celsian/vura-vite-plugin wires the Vite dev server to your Vura project: it mounts CelsianJS API middleware for src/api routes, handles server-rendered pages, exposes the task admin endpoint (/__tasks), and hot-reloads route modules when files change. It is installed automatically into the Vite config by create-vura — you only configure it directly when customising the Vite setup.
Install
npm install @celsian/vura-vite-pluginMinimal example
vite.config.ts:
import { defineConfig } from 'vite';
import { thenPlugin } from '@celsian/vura-vite-plugin';
export default defineConfig({
plugins: [thenPlugin()],
});Pass a root option to override the project root if it differs from process.cwd():
thenPlugin({ root: '/path/to/project' })Documentation
vura.io docs site launches with v0.5 — until then, see the repo README and CHANGELOG.
License
MIT — and it will stay MIT.
