Merge pull request #2212 from FredyC/plugin-invalid-changed-file

Pass changed file into `invalid` plugin hook
This commit is contained in:
Tobias Koppers 2016-03-24 18:25:16 +01:00
commit 9063bee36d
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ Watching.prototype.watch = function(files, dirs, missing) {
this.compiler.fileTimestamps = fileTimestamps; this.compiler.fileTimestamps = fileTimestamps;
this.compiler.contextTimestamps = contextTimestamps; this.compiler.contextTimestamps = contextTimestamps;
this.invalidate(); this.invalidate();
}.bind(this), function() { }.bind(this), function(fileName, changeTime) {
this.compiler.applyPlugins("invalid"); this.compiler.applyPlugins("invalid", fileName, changeTime);
}.bind(this)); }.bind(this));
}; };