Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with browsersync #41

Open
infn8 opened this issue Mar 6, 2017 · 2 comments
Open

Use with browsersync #41

infn8 opened this issue Mar 6, 2017 · 2 comments

Comments

@infn8
Copy link

infn8 commented Mar 6, 2017

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
Copy link

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

@infn8
Copy link
Author

infn8 commented Jul 24, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants