Skip to content

Commit 01a0d73

Browse files
authored
Fix Windows compatibility (facebook#3232)
* Windows compatibility * Use regex for mutli-replace
1 parent f498547 commit 01a0d73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-scripts/config/webpackDevServer.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ module.exports = function(proxy, allowedHost) {
7777
// https://github.com/facebookincubator/create-react-app/issues/1065
7878
watchOptions: {
7979
ignored: new RegExp(
80-
`^(?!${path.normalize(paths.appSrc + '/')}).+[\\/]node_modules[\\/]`,
80+
`^(?!${path
81+
.normalize(paths.appSrc + '/')
82+
.replace(/[\\]+/g, '\\\\')}).+[\\\\/]node_modules[\\\\/]`,
8183
'g'
8284
),
8385
},

0 commit comments

Comments
 (0)