Is it possible to get multiple html entry points to work in Vite when running it as a dev server (with vite --host)? I'm currently using this post's solution Multiple entry points in Vite, but it only works for when building the site to a dist folder.
For anyone coming here with same question. Taken from Vite guide
Suppose you have the following source code structure:
├── package.json ├── vite.config.js ├── index.html ├── main.js └── nested ├── index.html └── nested.jsDuring dev, simply navigate or link to /nested/ - it works as expected, just like for a normal static file server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With