Re-use current tab instead of open a new one

未關閉
#1,400 24 則留言 76 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
javascript, webpack
領域
tooling, web-dev

研究方向

此請求涉及 webpack-dev-server 的瀏覽器啟動行為,並提到了 webpack.config.js 以及一個額外的 .applescript 檔案。先閱讀相關的 issue #1185,並追蹤伺服器在 OSX 上開啟瀏覽器的方式。重新啟動 webpack-dev-server 時能夠重用目前的 Chrome 分頁,而不是再開啟另一個分頁,且不影響其他平台,即表示完成。

由索引模型根據 Issue 內容生成。

描述

priority: 4 (nice to have) semver: patch severity: 4 (inconvenient) type: feature
  • 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

主要語言
JavaScript
星號
7.9k
分支
1.5k
平均合併
2 天 12 小時
30 天內合併 PR
8

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

webpack/webpack-dev-server 的其他 Issue

查看 webpack/webpack-dev-server 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。