ionic-team / ionic-team/ionic-cli
Browser opens long before webpack is ready
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 682
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start at the ionic serve flow that launches the Angular CLI dev server and examine how it decides when to open the browser. Compare its readiness handling with the Angular CLI behavior described in the issue. Done means the browser opens after webpack-dev-server finishes compiling instead of showing a white screen while bundles are still building.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- build-system, cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100