Webpack-dev-server: Specifying browser for --open flag

Created on 23 Jan 2017  路  5Comments  路  Source: webpack/webpack-dev-server

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

Opens default browser which is not always dev browser

What is the expected behavior?

Adding ability to specify browser like

webpack-dev-server --open chrome

If this is a feature request, what is motivation or use case for changing the behavior?

Different environments

4 (nice to have) approved

Most helpful comment

support names of package opn example for:

macOS: google chrome
Linux: google-chrome
Windows: chrome

or support chrome for all S.O ?

All 5 comments

Good idea. Looks like the opn package supports it. PR welcome!

support names of package opn example for:

macOS: google chrome
Linux: google-chrome
Windows: chrome

or support chrome for all S.O ?

I just downloaded https://polypane.rocks and came running here to see how I can have webpack open that up (dev browser) instead of my default 'browsing' browser.

@typerory creator of Polypane here, let me see if I that's something I can do :)

@typerory so, this took a while (hi!) but with the upcoming version of Polypane, the app is installable and you'll be able to use --open polypane.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ky6uk picture Ky6uk  路  3Comments

mrdulin picture mrdulin  路  3Comments

uMaxmaxmaximus picture uMaxmaxmaximus  路  3Comments

daryn-k picture daryn-k  路  3Comments

da2018 picture da2018  路  3Comments