Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional config similar to webpack dev server "open" #67

Open
pixelbucket-dev opened this issue Oct 22, 2020 · 1 comment
Open

Additional config similar to webpack dev server "open" #67

pixelbucket-dev opened this issue Oct 22, 2020 · 1 comment

Comments

@pixelbucket-dev
Copy link

https://webpack.js.org/configuration/dev-server/#devserveropen

It would be nice to force this plugin to open a specific browser and also allow sending in args to the browser commands (see examples above). Is it possible?

@thgh
Copy link
Owner

thgh commented Oct 26, 2020

PR welcome!

We use opener https://www.npmjs.com/package/opener for that. It seems that it does support that. It would work like it is, except that the http check here probably breaks it:
https://github.com/thgh/rollup-plugin-serve/blob/master/src/index.js#L112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants