vite-plugin-html icon indicating copy to clipboard operation
vite-plugin-html copied to clipboard

Serve pages without middle directory

Open salazarr-js opened this issue 2 years ago • 0 comments

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

salazarr-js avatar Aug 05 '22 17:08 salazarr-js