-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
devserver shall be capable to open app not only in default system browser #2960
Comments
Will do. |
Would you mind making a PR for this with your solution? |
I'm working on it but it don't seems to work the opn call in dev-server.js (function openBrowser - line 11) seems to be never called. Will I do a PR on documentation website too to explain the option ? |
Sorry it took so long. Lots going on. Available in beta.10. Using
|
Sorry, the pull request is here quasarframework/quasar-cli#220. |
Hi, Can you instead port 4636d3a and test it out on legacy 0.17 quasar-cli? Currently dealing with 1.0 stuff. Sorry for the inconvenience. |
Assuming you want it for 0.17? |
Hi, I'm testing quasar v1 in a new side project for a week. It's a great work ! thank you ! |
Sure it is. devServer: { or open: { .... } |
Sorry, i cannot make it work (cf. screenshoot) I remember that it was not possible to pass an object to open property and i finally use the property "browser" of the "devServer" section. I think that webpack-dev-server cannot pass object to opn component,but i don't really remember why. All is in my pull request. If you want i can create a new PR on quasar v1 |
@jerome-mare |
… default system browser quasarframework#2960
Issue to solve
When using the quasar-cli to launch the dev server, it opens the operating system default browser.
Feature requested
It will be interesting to be able to launch the browser of our choice with specific command line option. For example Google canary in incognito mode.
Proposed technical solution
opn is able to handle that scenario : https://github.com/sindresorhus/opn#readme
opn('https://localhost:8080/', {app: ['google canary', '--incognito']});
With quasar-cli, it will be possible to enhance the source file
dev-server.js
to pass the option to opnIn this case, with the option
browser
of the devServer section, we can define the target browser, for example :{app: ['google canary', '--incognito']}
The text was updated successfully, but these errors were encountered: