Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #116 from 0xR/master
Browse files Browse the repository at this point in the history
Fix grunt-autoprefixer blocking grunt when it finds no files
  • Loading branch information
nDmitry committed Jun 10, 2015
2 parents 1007a79 + e0f378e commit 08c3eb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/autoprefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ module.exports = function(grunt) {
var finished = 0;
var processed = this.files.length;

if (!this.files.length) {
done();
}

this.files.forEach(function(f) {
var src = f.src.filter(function(filepath) {
if (!grunt.file.exists(filepath)) {
Expand Down

0 comments on commit 08c3eb9

Please sign in to comment.