Skip to content

Commit

Permalink
fix(matchers): skip traversal when all matches are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
voischev authored and terinjokes committed Jul 21, 2016
1 parent 8644de7 commit 195a7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthtml-preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function (options, foundEntries) {
});
}

if (matchers) {
if (matchers.length) {
tree.match(matchers, function (node) {
switch (node.tag) {
case 'img':
Expand Down

0 comments on commit 195a7d5

Please sign in to comment.