webpack / webpack/webpack-dev-server
Re-use current tab instead of open a new one
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7.8k
- Forks
- 1.5k
- Avg merge
- 5h 32m
- Merged PRs (30d)
- 6
Description
- Operating System: OSX
- Node Version: 8.11.0
- NPM Version: 6.0.0
- webpack Version: 4.7.0
- webpack-dev-server Version: 3.1.4
- This is a bug
- This is a modification request
Code
// webpack.config.js
// additional code, remove if not needed.
Expected Behavior
Try to refresh the current browser window
Actual Behavior
Open always a new tab
For Bugs; How can we reproduce the behavior?
For Features; What is the motivation and/or use-case for the feature?
Inspired on create-react-app solution.
Since I usually use Google Chrome, I expect to stay in the same (current) browser tab
when re-launch webpack-dev-server, instead of use a new one and close those more.
Just curious if the Webpack people/ecosystem are interested in having this behaviour (will PR in case), since is very specific to Chrome browser in OSX platform.
Furthermore, the solution requires to have an extra file .applescript in the package.
Thoughts?
related #1185
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The request concerns webpack-dev-server's browser-launch behavior and mentions webpack.config.js plus an extra .applescript file. Start by reading related issue #1185 and tracing how the server opens the browser on OSX. Done means relaunching webpack-dev-server reuses the current Chrome tab instead of opening another one, without breaking other platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- tooling, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100