added link to better visualizing tool (#764)

issue here #762
This commit is contained in:
vaibhav
2016-09-26 18:36:46 +05:30
committed by Dan Abramov
parent 7d0fd03b00
commit 37819ee8ef

View File

@@ -174,7 +174,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
// Tip: use https://jex.im/regulex/ 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