diff --git a/tasks/lib/encode.js b/tasks/lib/encode.js index dacd17e..3282360 100644 --- a/tasks/lib/encode.js +++ b/tasks/lib/encode.js @@ -65,9 +65,9 @@ module.exports.stylesheet = function(srcFile, opts, done) { var result = ''; var img, group; - grunt.util.async.whilst(function() { + grunt.util.async.whilst(function(cb) { group = rImages.exec(src); - return group != null; + cb(null,group != null); }, function(complete) { // if there is another url to be processed, then: // group[1] will hold everything up to the url declaration