Re-use current tab instead of open a new one

オープン
#1,400 コメント 24 件 リアクション 76 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

webpack/webpack-dev-server のほかの issue

webpack/webpack-dev-server の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。