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