I am trying to setup a vite project that has multiple entry points.
https://stackblitz.com/edit/vitejs-vite-swtkdv
It is a pretty basic setup taken straight from the vite website that uses vanilla flavour. Only things which I have updated are the following:
- add vite.config.js file with configuration for multiple entry points (check the attached stackblitz link)
- add new files: login/index.html; login/login.js (check the attached stackblitz link)
What I expect to happen is everytime I enter url
/login, it should load the page ./login/index.html
. However in reality it keeps on loading the ./index.html
.