Replies: 2 comments 1 reply
-
Hi, do you have found a solution? I did something amazing, I virtualized the loading of index.html. Building is fine, but there are issues during serve. Vite dev server prompts that it can't find index.html, which is quite awkward. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a very simple question.
I have a file located in the project
./some/index.dev.html
that contains html I want it to be served by vite dev server from/
url. And also I would like this file to be watched by Vite, so I get auto-reload.I don't get why I can not easily configure this in vite. I have a solution to use plugin (transformIndexHtml which will "manually" load the content, or configureServer middlware), though in this case I still need to have dummy
index.html
in the project root, because vite won't work without one, and also this file won't be watched in this case.Maybe I don't understand something here?
UPD:
Just noticed that vite watches changes for all *.html files and reloads the page. Rather impicit behaviour.
Beta Was this translation helpful? Give feedback.
All reactions