{"library":"vite-plugin-html-pages","type":"library","category":null,"description":"vite-plugin-html-pages (v1.6.8) is a minimal static site generation plugin for Vite that uses JavaScript functions returning HTML strings, built on the javascript-to-html library. It employs file-based routing akin to Next.js's pages router—supporting static, dynamic ([slug]), multiple parameters, catch-all, optional catch-all, index routes, and route groups. Unlike full-featured SSGs like Astro or Nuxt, this plugin provides a lightweight, framework-agnostic approach to generating static HTML without a component system or complex build pipeline. It automatically generates sitemap.xml, 404.html, RSS feeds, and includes dev server SSR rendering with fetch caching. Ships TypeScript types. Requires Vite >=5 and Node >=18. Release cadence: active maintenance with frequent updates.","language":"javascript","status":"active","version":"1.6.8","tags":["javascript","vite","vite-plugin","vite-plugin-pages","vite-ssg","static-site-generator","ssg","file-based-routing","html-generator","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-html-pages","imports":["import htmlPages from 'vite-plugin-html-pages'","import { defineConfig } from 'vite'","import { fragment, html, body, h1 } from 'javascript-to-html'","export function generateStaticParams() { ... }"]},{"cmd":"yarn add vite-plugin-html-pages","imports":[]},{"cmd":"pnpm add vite-plugin-html-pages","imports":[]}],"homepage":null,"github":"https://github.com/paul-browne/vite-plugin-html-pages","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-html-pages","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}