olovaplugin
v1.0.18
Published
Vite plugin for Olova framework - file-based routing, SSG, SSR, and hydration
Maintainers
Readme
olovaplugin
Vite plugin for Olova framework - file-based routing, SSG, SSR, and hydration.
Installation
npm install olovapluginUsage
// vite.config.ts
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { olovaPlugins } from "olovaplugin";
export default defineConfig({
plugins: [react(), ...olovaPlugins()],
});Features
- File-based routing - Create routes by adding files to
src/ - SSG (Static Site Generation) - Pre-render pages at build time
- SSR (Server-Side Rendering) - Full hydration support
- Dynamic routes - Use
$paramor:paramsyntax - Route groups - Organize routes with
(folder)syntax - HMR support - Hot reload for route changes
Importing from olova
import { Router, Link, useParams, usePathname } from "olova";
import type { Metadata } from "olova";License
MIT
