mirror of https://github.com/webpack/webpack.git
Merge pull request #2212 from FredyC/plugin-invalid-changed-file
Pass changed file into `invalid` plugin hook
This commit is contained in:
commit
9063bee36d
|
|
@ -105,8 +105,8 @@ Watching.prototype.watch = function(files, dirs, missing) {
|
|||
this.compiler.fileTimestamps = fileTimestamps;
|
||||
this.compiler.contextTimestamps = contextTimestamps;
|
||||
this.invalidate();
|
||||
}.bind(this), function() {
|
||||
this.compiler.applyPlugins("invalid");
|
||||
}.bind(this), function(fileName, changeTime) {
|
||||
this.compiler.applyPlugins("invalid", fileName, changeTime);
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue