This plugin provides true MPA functionality for Vite, eliminating various limitations of Vite MP.
No matter where your entry files/template files are located, you can access pages through the root route, making it perfect for embedded page development.
http://localhost:5173/index.html
http://localhost:5173/about.html
...
🙅🏻♀️: No need to search everywhere for your MPA page addresses.
Try the demo.
- True MPA.
- Load pages on demand - no matter how many pages you have, only the current page will be loaded.
- Support for reusing template files.
- Support for 404 pages.
- Support for
vue,react...and all frameworks supported by Vite.
More docs see vite-plugin-mpa docs.