ionic-team / ionic-team/ionic-cli

Browser opens long before webpack is ready

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

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

bug project type: angular
主要言語
TypeScript
スター
2k
フォーク
681
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

Angular CLI の開発サーバーを起動する ionic serve フローから始め、ブラウザーを開くタイミングをどのように判断しているかを調べます。issue で説明されている Angular CLI の動作と、準備完了の処理を比較します。webpack-dev-server のコンパイルが完了してからブラウザーが開き、バンドルのビルド中に白い画面が表示されない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
build-system, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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