You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 themiddleware
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?
The text was updated successfully, but these errors were encountered: