Commit c13f7f40 authored by Dan Abramov's avatar Dan Abramov
Browse files

Style tweaks

parent cd815aaf
Showing with 3 additions and 2 deletions
+3 -2
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
var createJestConfig = require('./utils/create-jest-config'); var createJestConfig = require('./utils/createJestConfig');
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var prompt = require('./utils/prompt'); var prompt = require('./utils/prompt');
......
...@@ -187,6 +187,7 @@ function addMiddleware(devServer) { ...@@ -187,6 +187,7 @@ function addMiddleware(devServer) {
// - /index.html (served as HTML5 history API fallback) // - /index.html (served as HTML5 history API fallback)
// - /*.hot-update.json (WebpackDevServer uses this too for hot reloading) // - /*.hot-update.json (WebpackDevServer uses this too for hot reloading)
// - /sockjs-node/* (WebpackDevServer uses this 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\/)).*$/; var mayProxy = /^(?!\/(index\.html$|.*\.hot-update\.json$|sockjs-node\/)).*$/;
devServer.use(mayProxy, devServer.use(mayProxy,
// Pass the scope regex both to Express and to the middleware for proxying // Pass the scope regex both to Express and to the middleware for proxying
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
process.env.NODE_ENV = 'test'; process.env.NODE_ENV = 'test';
const createJestConfig = require('./utils/create-jest-config'); const createJestConfig = require('./utils/createJestConfig');
const jest = require('jest'); const jest = require('jest');
const path = require('path'); const path = require('path');
const paths = require('../config/paths'); const paths = require('../config/paths');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment