watch-page-plugin: prevent null access (#523)

This commit is contained in:
Naoyuki Kanezawa 2016-12-27 03:13:28 +09:00 committed by Guillermo Rauch
parent 1888a251a8
commit ad0f0a4d79

View file

@ -3,7 +3,7 @@ import { resolve, relative, join, extname } from 'path'
export default class WatchPagesPlugin {
constructor (dir) {
this.dir = resolve(dir, 'pages')
this.prevFileDependencies = null
this.prevFileDependencies = []
}
apply (compiler) {