javascript - Trigger BrowserSync reload from url request? -
is there way trigger full browsersync refresh requesting url?
the case proxied web app database component. when in database changed, update hook ping url trigger browsersync reload.
it seems should possible requesting url on localhost:3001
, haven't found kind of thing mentioned in documentation.
yes, it's possible , it's fantastic.
browsersync 2.6.0 added support http endpoints looking for: http request can trigger reload on connected devices. requests can originate locally or externally. address basic reload looks this:
http://localhost:3000/__browser_sync__?method=reload
endpoints can accept arguments target specific files.
Comments
Post a Comment