Skip to content

Commit

Permalink
fix not to overwrite the ignored option on Windows (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa authored and timneutkens committed Jan 19, 2017
1 parent 0119149 commit 43149bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/hot-reloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -135,12 +140,7 @@ export default class HotReloader {
noInfo: true,
quiet: true,
clientLogLevel: 'warning',
watchOptions: {
ignored: [
/(^|[/\\])\../, // .dotfiles
/node_modules/
]
},
watchOptions: { ignored },
...windowsSettings
})

Expand Down

0 comments on commit 43149bd

Please sign in to comment.