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

Open multiple windows #2265

Closed
1 of 2 tasks
digitaljohn opened this issue Sep 30, 2019 · 5 comments
Closed
1 of 2 tasks

Open multiple windows #2265

digitaljohn opened this issue Sep 30, 2019 · 5 comments

Comments

@digitaljohn
Copy link
Contributor

  • Operating System:
  • Node Version: v10.16.3
  • NPM Version: 6.9.0
  • webpack Version: 4.41.0
  • webpack-dev-server Version: 3.8.1
  • Browser: Chrome 77.0.3865.90
  • This is a bug
  • This is a modification request

Code

It would be really helpful to launch multiple windows using the openPage option rather than only a single one.

E.g.

// webpack.config.js

  devServer: {
    open: true,
    openPage: ["/pageone", "/pagetwo"]
  },

For Features; What is the motivation and/or use-case for the feature?

We are working on an application which in its nature requires multiple web-browser windows to be open.

@alexander-akait
Copy link
Member

alexander-akait commented Sep 30, 2019

It is expected and can't be fixed because we don't have api for allowing browser to open page in same tab, also we use open library https://github.com/sindresorhus/open, open issue in this repo

Looks i was wrong

@alexander-akait
Copy link
Member

What is use case?

@digitaljohn
Copy link
Contributor Author

In my particular case, I am working on a presentation system where there are three browser windows open (one on each of the three monitors connected). The browsers are synchronised using BroadcastChannel.

When starting a development session it's a chore to have to manually open three windows and change the urls to include ?window=1 etc.

Example visual below:
image

I do believe this may be an edge case and rare but I feel its something I may use over and over while developing multi user games/chat apps etc.

I am willing to perform the leg work and get a PR up and running if you think its a worthy feature.

@alexander-akait
Copy link
Member

Yes, PR welcome 👍

@alexander-akait
Copy link
Member

Done #2266

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

No branches or pull requests

2 participants