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

Pass args to browser

Open ylhuang0423 opened this issue 9 years ago • 1 comments

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?

ylhuang0423 avatar Oct 31 '16 13:10 ylhuang0423

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?

polotto avatar Apr 19 '21 14:04 polotto