Open infn8 opened 7 years ago
@infn8 Did you ever figure this out? I'm currently trying to accomplish the same thing
@andrebautista I feel like I did but I cannot remember how. I was working for a different company then and do not have the lappy i was using then so I do not have the code. I will add this to my list to replicate and will post here again either with a solution or a list of all of the failed attempts.
Full disclosure, this is not a top priority and will likely take me a month or two to get to. Sorry that I cannot be speedier.
Best of luck. If you can get it post here as well.
The awesome package
browser-sync
uses thehttp-proxy
library and has an option to setmiddleware
handlers.https://browsersync.io/docs/options#option-middleware
I cannot seem to get your simple example working with browsersync. Any ideas on the syntax?