diff --git a/config/webpackDevServer.config.js b/config/webpackDevServer.config.js index a48a1fbc3a6..f401f2cce0d 100644 --- a/config/webpackDevServer.config.js +++ b/config/webpackDevServer.config.js @@ -77,7 +77,9 @@ module.exports = function(proxy, allowedHost) { // https://github.com/facebookincubator/create-react-app/issues/1065 watchOptions: { ignored: new RegExp( - `^(?!${path.normalize(paths.appSrc + '/')}).+[\\/]node_modules[\\/]`, + `^(?!${path + .normalize(paths.appSrc + '/') + .replace(/[\\]+/g, '\\\\')}).+[\\\\/]node_modules[\\\\/]`, 'g' ), },