Commit 43149bdb authored by Naoyuki Kanezawa's avatar Naoyuki Kanezawa Committed by Tim Neutkens

fix not to overwrite the ignored option on Windows (#824)

parent 01191490
......@@ -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
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment