tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.41k stars 484 forks source link

Pass args to browser #154

Open ylhuang0423 opened 7 years ago

ylhuang0423 commented 7 years ago

To test the webpage in a all clear environment, I always pass the '--incognito' args to Chrome. Live-server would be a good choice for quick test without any dependencies, but I can't open Chrome by incognito mode automatically.

I found that the opn module used in this work supports this function:

opn('http://sindresorhus.com', {app: ['google chrome', '--incognito']});

Would you mind to add a CLI parameter for this?

polotto commented 3 years ago

I need to open the chrome in incognito mode but I couldn't find a solution, I tried: live-server --browser="google chrome --incognito" but It didn't work. Any thoughts how can I solve this?