Style tweaks

This commit is contained in:
Dan Abramov
2016-08-04 19:21:07 +01:00
parent cd815aafcd
commit c13f7f40a2
4 changed files with 3 additions and 2 deletions

View File

@@ -187,6 +187,7 @@ function addMiddleware(devServer) {
// - /index.html (served as HTML5 history API fallback)
// - /*.hot-update.json (WebpackDevServer uses this too for hot reloading)
// - /sockjs-node/* (WebpackDevServer uses this for hot reloading)
// Tip: use https://www.debuggex.com/ to visualize the regex
var mayProxy = /^(?!\/(index\.html$|.*\.hot-update\.json$|sockjs-node\/)).*$/;
devServer.use(mayProxy,
// Pass the scope regex both to Express and to the middleware for proxying