No9 / harmon

middleware for node-http-proxy to modify the remote website response with trumpet
Other
424 stars 62 forks source link

Use with browsersync #41

Open infn8 opened 7 years ago

infn8 commented 7 years ago

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?

andrebautista commented 6 years ago

@infn8 Did you ever figure this out? I'm currently trying to accomplish the same thing

infn8 commented 6 years ago

@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.