@implementjs/vite
v0.0.3
Published
The Vite plugin behind implement's server rendering, prerendering and dev styles.
Downloads
1,622
Maintainers
Readme
@implementjs/vite
The Vite plugin behind implement's server rendering, prerendering and dev styles.
npm install -D @implementjs/viteMost apps never install this directly. @implementjs/kit
depends on it and configures it for you. Reach for it when you are building your own
routing on top of implement and want the SSR dev server, the crawler and the prerenderer
without kit's conventions.
// vite.config.ts
import { implement } from "@implementjs/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [implement({ entry: "/src/entry-server.ts" })],
});The entry module exports render(url), and the plugin injects what it returns into the
html shell: server rendered in dev, written to disk on build.
Full documentation: implementjs.dev/docs/vite
