The awesome package browser-sync uses the http-proxy library and has an option to set middleware handlers.
https://browsersync.io/docs/options#option-middleware
I cannot seem to get your simple example working with browsersync. Any ideas on the syntax?
The awesome package
browser-syncuses thehttp-proxylibrary and has an option to setmiddlewarehandlers.https://browsersync.io/docs/options#option-middleware
I cannot seem to get your simple example working with browsersync. Any ideas on the syntax?