vite-plugin-html
vite-plugin-html copied to clipboard
Serve pages without middle directory
For one reason when you're working with MPA and your .html
files aren't in the root folder, vite makes you put those middle directories in the url to serve correctly the pages, having urls like http://localhost:5173/public/index.html
or http://localhost:5173/public/other.html
Somehow vite-plugin-virtual-html manage to serve all the pages without those unnecesary middle directories, that could be a nice feature to have too