vite-plugin-html
vite-plugin-html copied to clipboard
vite build deletes the template
This is pretty critical... using this plugin is now impossible.
For someone that ends up on this issue...
It seems that there is a problem with absolute URLs... It looks like it doesn't delete the files if the path is relative.
So instead of:
template: resolve(__dirname, "path", "to", "index.html")
use a relative path
template: "path/to/index.html"