Open iongion opened 2 years ago
+ same problem
vite@2.9.9
vite-plugin-html@3.2.0
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"
The template file gets deleted when using
vite build
vite@2.9.12
vite-plugin-html@3.2.0