A Vite plugin for building multi-page applications (MPA) supporting Vue 2/3, React, and other frameworks. Version 0.0.14 (latest) with active development. Scans a directory (default src/views) for entry files and generates HTML pages for each. Differentiators: simple zero-config setup, supports custom scan options, rewrite rules, and page filtering. Integrates with companion plugins for HTML templates and vconsole. Requires Vite >=2.0.0 and TypeScript >=4.0.0.
npm install vite-plugin-multi-pagesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic configuration of vite-plugin-multi-pages with custom scan directory and default open page.
Ensure Vite and TypeScript meet minimum version requirements.
Set scanFile option to match your entry file pattern, e.g., 'index.{js,ts}'.Include @vitejs/plugin-react or similar in vite.config.ts before mpa() plugin.
Run `npm install vite-plugin-multi-pages` and verify the import path matches 'vite-plugin-multi-pages'.
Use `import mpa from 'vite-plugin-multi-pages'` and ensure your project uses ESM (type: module in package.json or .mjs config).
Check that your entry files exist and match the scanFile pattern; adjust scanDir or scanFile accordingly.