Skip to content

Commit

Permalink
Return if no files are found.
Browse files Browse the repository at this point in the history
  • Loading branch information
doctyper committed Feb 25, 2014
1 parent 7b18ae8 commit df487c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ module.exports = function (fileName, opt) {

function generateModernizr() {

if (opt.files.src.length === 0) {
return;
}

// Call customizr
customizr(opt, function (data) {

Expand Down

0 comments on commit df487c6

Please sign in to comment.