mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix not to overwrite the ignored option on Windows (#824)
This commit is contained in:
parent
011914906b
commit
43149bdb08
|
@ -122,9 +122,14 @@ export default class HotReloader {
|
||||||
this.prevChunkHashes = chunkHashes
|
this.prevChunkHashes = chunkHashes
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const ignored = [
|
||||||
|
/(^|[/\\])\../, // .dotfiles
|
||||||
|
/node_modules/
|
||||||
|
]
|
||||||
const windowsSettings = isWindowsBash() ? {
|
const windowsSettings = isWindowsBash() ? {
|
||||||
lazy: false,
|
lazy: false,
|
||||||
watchOptions: {
|
watchOptions: {
|
||||||
|
ignored,
|
||||||
aggregateTimeout: 300,
|
aggregateTimeout: 300,
|
||||||
poll: true
|
poll: true
|
||||||
}
|
}
|
||||||
|
@ -135,12 +140,7 @@ export default class HotReloader {
|
||||||
noInfo: true,
|
noInfo: true,
|
||||||
quiet: true,
|
quiet: true,
|
||||||
clientLogLevel: 'warning',
|
clientLogLevel: 'warning',
|
||||||
watchOptions: {
|
watchOptions: { ignored },
|
||||||
ignored: [
|
|
||||||
/(^|[/\\])\../, // .dotfiles
|
|
||||||
/node_modules/
|
|
||||||
]
|
|
||||||
},
|
|
||||||
...windowsSettings
|
...windowsSettings
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue