lite-server icon indicating copy to clipboard operation
lite-server copied to clipboard

How can I define the path in the browser?

Open geri777 opened this issue 8 years ago • 1 comments

I would like to load the browser with a defined path - currently it always starts with http://localhost:3000/, but I would like to start it with http://localhost:3000/subfolder/ I can easily set the root path of the server. But my app structure requires that the root path is different from the path to my index.html. I would like to set my root path to './' but the browser should open /app/index.html.

Thanks, Geri

geri777 avatar Apr 13 '16 07:04 geri777

Take a look at the available Browser Sync options and create a custom bs-config file.

The startPath option might do what you need.

cgmartin avatar Apr 17 '16 15:04 cgmartin