javascript - what does livereload server do? -


what livereload in grunt do, watch want? example if run server @ port 9000 , livereload server runs @ port 9001. happen when there changes in files watching, should see newest content @ example.com:9001 or example.com:9000?

the short answer don't think can both. can either have simple node server running without livereload or livereload running as part of node application. so, can have node server running on port 9000 or have livereload running part of node application on port 9001 (tho default port 35729).

i can speak own experience on this. in case i've used livereload when developing new code on local development machine yeoman - it's built in feature of webapp generator. confusingly that, while defaults port 35729, generator implements connect-livereload, sets its port 9000, , runs livereload through that, when run grunt server open application @ port 9000 , livereload updates port instead.

i recommend reading full documentation watch particularly section connect-livereload want know more.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -