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