Commit 01a0d737 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub
Browse files

Fix Windows compatibility (#3232)

* Windows compatibility

* Use regex for mutli-replace
parent f4985474
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 3 additions and 1 deletion
+3 -1
...@@ -77,7 +77,9 @@ module.exports = function(proxy, allowedHost) { ...@@ -77,7 +77,9 @@ module.exports = function(proxy, allowedHost) {
// https://github.com/facebookincubator/create-react-app/issues/1065 // https://github.com/facebookincubator/create-react-app/issues/1065
watchOptions: { watchOptions: {
ignored: new RegExp( ignored: new RegExp(
`^(?!${path.normalize(paths.appSrc + '/')}).+[\\/]node_modules[\\/]`, `^(?!${path
.normalize(paths.appSrc + '/')
.replace(/[\\]+/g, '\\\\')}).+[\\\\/]node_modules[\\\\/]`,
'g' 'g'
), ),
}, },
......
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