Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Vite with a different entry point than index.html

Tags:

vite

Would like to run vite from the cli and use a different entry point than ./index.html like so:

vite -entrypoint ./gallery/slider.html

I cannot find a cli option and also no config option that allows a different entry point.

I am concerned about dev serving not about the build phase.

like image 695
citykid Avatar asked Oct 18 '25 03:10

citykid


1 Answers

Use vite serve ./gallery/ then just visit localhost:5173/slider.html.

In dev mode you can have as many inputs as you like

like image 134
wesbos Avatar answered Oct 22 '25 08:10

wesbos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!