ionic-team / ionic-team/ionic-cli

Browser opens long before webpack is ready

Offen
#3,357 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug project type: angular
Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
682
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Right now, running `ionic serve` will use the Angular CLI's dev server, which uses webpack-dev-server. As far as I know, there isn't a way (via child processes) to know when the bundles are ready, aside from maybe parsing stdout of the process. This results in the Ionic CLI opening the browser window much sooner than expected and displaying a white screen until webpack-dev-server finally compiles everything and loads the app.

This message is displayed when the window is opened:

```
[ng] ℹ 「wdm」: wait until bundle finished: /
```

The Angular CLI used to have the same behavior if `--open` is specified, but it seems like it was fixed as of version 6.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.