Skip to content

Commit

Permalink
exit loop if excluded match found
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Bonetti committed Jan 25, 2017
1 parent cd367c1 commit bd23432
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -138,6 +138,7 @@ CleanWebpackPlugin.prototype.apply = function () {
_this.options.exclude.forEach(function(exclusionRule) {
if (childFile.match(exclusionRule)) {
include = false;
return;
}
});

Expand Down

0 comments on commit bd23432

Please sign in to comment.