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
Although there is a deprecate prompt, but the behavior of projects that used onAfterSetupMiddleware before will be inconsistent with the new version of webpack-dev-server
Note that
app.get(...)
inonAfterSetupMiddleware
is not the same asapp.get(...)
insetupMiddlewares
.It seems
app.get()
insetupMiddlewares
are always applied before middlewares are applied, if we have a config like this:The route
/__index__.html
will take place for history api fallback, however if we changed it to this:History api fallback are broken, we have to transform it into a middleware like:
In this way we have to add a
request.method
check in middleware implementation.Originally posted by @otakustay in #4129 (comment)
The text was updated successfully, but these errors were encountered: