You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@buu700 it's still there, but it is a build option and not a serve option. If you add it to projects.project-name.architect.build.options.poll it should work. I tried it on a new project modifying templates and ts files with a 10000ms poll and saw rebuilds.
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.
Ah, that could possibly work. Would I be able to stack that with another configuration, like --configuration beta --configuration docker (as I understand, --configuration now replaces --environment?), or would I need to make two different versions of beta in this case?
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.
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...
ng serve --host 0.0.0.0 --poll 200
^ Works as expected in vagrant on win10 host
ng serve --host 0.0.0.0 --poll
^ Does no polling, so perhaps a sensible default should be added? 500 or 1000 ms?
Reacted by Lars Gyrup Brink Nielsen and Kevin Reed
Activity
filipesilva commentedon May 1, 2018
@buu700 it's still there, but it is a build option and not a serve option. If you add it to
projects.project-name.architect.build.options.pollit should work. I tried it on a new project modifying templates and ts files with a 10000ms poll and saw rebuilds.buu700 commentedon May 1, 2018
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.
filipesilva commentedon May 1, 2018
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.
buu700 commentedon May 1, 2018
Ah, that could possibly work. Would I be able to stack that with another configuration, like
--configuration beta --configuration docker(as I understand,--configurationnow replaces--environment?), or would I need to make two different versions ofbetain this case?filipesilva commentedon May 1, 2018
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.
feat(@angular-devkit/build-angular): allow poll override in dev-server
buu700 commentedon May 1, 2018
Awesome, thanks! So that will add
--pollback to theservecommand?filipesilva commentedon May 1, 2018
Yeap, it should be on the next release of
@angular-devkit/build-angular!feat(@angular-devkit/build-angular): allow poll override in dev-server
hbarve1 commentedon Sep 26, 2018
poll option is still not available in @angular/cli@6.2.3 serve!
is there any other way to enable poll option?
rogusdev commentedon Nov 19, 2018
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?
maroom1 commentedon Aug 20, 2019
I am new to this option, when do you use this poll.. can anybody help on atleast one usecase? where it helps.
Thank you
clydin commentedon Aug 24, 2019
@rogusdev The next version (9.0) will default to 500ms if the poll option is provided without a value. #15417
angular-automatic-lock-bot commentedon Sep 24, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.