jelenjs-vite
v0.1.11
Published
Vite plugin for JelenJS framework
Readme
JelenJS Vite Plugin
Vite plugin for JelenJS with SSR, SSG, and API routes support.
Features
- ✅ JSX/TSX compilation and optimization
- ✅ Server-Side Rendering (SSR)
- ✅ Static Site Generation (SSG)
- ✅ File-based routing
- ✅ API routes
- ✅ Code splitting
- ✅ TypeScript support
Usage
// vite.config.ts
import { defineConfig } from 'vite';
import jelenjs from 'jelenjs-vite';
export default defineConfig({
plugins: [
jelenjs({
mode: 'development',
optimizationLevel: 1,
ssrEnabled: true,
// File-based routing
router: {
enabled: true,
pagesDir: 'src/pages'
},
// SSG configuration
ssg: {
enabled: true,
outDir: 'dist'
},
// SSR configuration
ssr: {
enabled: true,
pagesDir: 'src/pages'
}
})
]
});Configuration
interface JelenJSPluginOptions {
mode?: 'development' | 'production';
optimizationLevel?: 0 | 1 | 2;
generateSourceMaps?: boolean;
ssrEnabled?: boolean;
router?: {
enabled?: boolean;
pagesDir?: string;
basePath?: string;
};
ssg?: {
enabled?: boolean;
outDir?: string;
};
ssr?: {
enabled?: boolean;
pagesDir?: string;
};
}License
MIT
