Fix path undefined when refreshing files

This commit is contained in:
Sébastien Chopin 2017-06-20 00:34:50 +02:00
parent 664ce12662
commit 041d5c37a0

View File

@ -389,7 +389,7 @@ export default class Builder extends Tapable {
ignoreInitial: true
})
/* istanbul ignore next */
const refreshFiles = _.debounce(this.generateRoutesAndFiles, 200)
const refreshFiles = _.debounce(() => this.generateRoutesAndFiles(), 200)
// Watch for src Files
let filesWatcher = chokidar.watch(patterns, options)