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
|
||||
})
|
||||
|
||||
const ignored = [
|
||||
/(^|[/\\])\../, // .dotfiles
|
||||
/node_modules/
|
||||
]
|
||||
const windowsSettings = isWindowsBash() ? {
|
||||
lazy: false,
|
||||
watchOptions: {
|
||||
ignored,
|
||||
aggregateTimeout: 300,
|
||||
poll: true
|
||||
}
|
||||
|
@ -135,12 +140,7 @@ export default class HotReloader {
|
|||
noInfo: true,
|
||||
quiet: true,
|
||||
clientLogLevel: 'warning',
|
||||
watchOptions: {
|
||||
ignored: [
|
||||
/(^|[/\\])\../, // .dotfiles
|
||||
/node_modules/
|
||||
]
|
||||
},
|
||||
watchOptions: { ignored },
|
||||
...windowsSettings
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue