Re-use current tab instead of open a new one

Aperta
#1,400 24 commenti 76 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, webpack
Ambito
tooling, web-dev

Direzione di ricerca

La richiesta riguarda il comportamento di webpack-dev-server nell’avvio del browser e menziona webpack.config.js oltre a un file .applescript aggiuntivo. Inizia leggendo l’issue #1185 correlata e seguendo il modo in cui il server apre il browser su OSX. Il lavoro è completato quando il riavvio di webpack-dev-server riutilizza la scheda Chrome attuale invece di aprirne un’altra, senza compromettere le altre piattaforme.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
7.9k
Fork
1.5k
Merge medio
2g 12h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di webpack/webpack-dev-server

Tutte le issue di webpack/webpack-dev-server

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.