@marmeon/vite
v0.3.0
Published
The Vite plugin for Marmeon apps: resolution conditions, constructor injection, entries, and virtual modules. UI-agnostic — the adapter's own plugin (e.g. @vitejs/plugin-react) goes next to it.
Readme
@marmeon/vite
The Vite plugin of Marmeon apps: the entries, the virtual modules of pages, language files and routes, constructor injection, and the check that keeps server code out of the browser.
Installation
A dev dependency of every new Marmeon app. In another app, with React's plugin next to it:
pnpm add -D vite@^8 @marmeon/vite @vitejs/plugin-reactVite is a peer, never a dependency: the app's own Vite, with its plugins and config, is the one the framework runs.
The config
import { marmeon } from '@marmeon/vite';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
export default defineConfig({ plugins: [marmeon(), react()] });Documentation
- Asset Bundling (Vite)
- Vite: the dev server
- Vite: server code in the browser
- URL Generation: which routes the browser knows
MIT · part of Marmeon
