-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng serve --poll #10559
Comments
@buu700 it's still there, but it is a build option and not a serve option. If you add it to |
Got it, thanks! It'd be easier to use as a command line flag since our serve script conditionally adds it based on whether the host OS is Windows, but not a blocker since copying and transforming angular.json is an option too. |
You can create a configuration that contains poll, and conditionally use that:
Then use that one on serve. WDYT? Or maybe poll should be on serve as well, as we do have some duplicated options there. |
Ah, that could possibly work. Would I be able to stack that with another configuration, like |
We're adding it to dev-server on angular/devkit#822, but I would like to mention that configuration extensibility/composability is on the radar. ATM there is neither. |
Awesome, thanks! So that will add |
Yeap, it should be on the next release of |
poll option is still not available in @angular/[email protected] serve! is there any other way to enable poll option? |
The new option is better than the old: it takes an argument for the milliseconds time to wait between polls. (You can see this in the commit referenced above.) However, if you simply pass --poll it has no default so it appears as if it is not working...
^ Works as expected in vagrant on win10 host
^ Does no polling, so perhaps a sensible default should be added? 500 or 1000 ms? |
I am new to this option, when do you use this poll.. can anybody help on atleast one usecase? where it helps. Thank you |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Was the
--poll
flag removed in v6, or is that just an error in the newly committed docs? As per #5212 it's needed to support Docker on Windows, which is still the case as far as I'm aware.The text was updated successfully, but these errors were encountered: