mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Fix Windows compatibility (#3232)
* Windows compatibility * Use regex for mutli-replace
This commit is contained in:
@@ -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'
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user