Skip to content

Browser opens long before webpack is ready #3357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
imhoffd opened this issue Jul 10, 2018 · 0 comments
Open

Browser opens long before webpack is ready #3357

imhoffd opened this issue Jul 10, 2018 · 0 comments
Labels
bug project type: angular Ionic Angular 4+ projects

Comments

@imhoffd
Copy link
Contributor

imhoffd commented Jul 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug project type: angular Ionic Angular 4+ projects
Projects
None yet
Development

No branches or pull requests

1 participant