1
0
Fork 0
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:
Naoyuki Kanezawa 2017-01-19 16:09:40 +09:00 committed by Tim Neutkens
parent 011914906b
commit 43149bdb08

View file

@ -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
})