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

Middleware Override Option #62

Open
trisys3 opened this issue Mar 28, 2017 · 0 comments
Open

Middleware Override Option #62

trisys3 opened this issue Mar 28, 2017 · 0 comments

Comments

@trisys3
Copy link

trisys3 commented Mar 28, 2017

I was perusing through the BrowserSync code, checking for why middleware don't activate when in serve-static mode. I think I found the answer: there is an undocumented optional switch in each item in the array of middleware that are added with the middleware option, called "override", that determines whether the middleware comes before or after the built-in middleware. I just tested and this works.

Could this amazing functionality be better documented, so no one else has to spend time looking for it like me?

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

1 participant