diff --git a/tasks/aws_s3.js b/tasks/aws_s3.js index cce558a..7e4ca00 100755 --- a/tasks/aws_s3.js +++ b/tasks/aws_s3.js @@ -226,6 +226,10 @@ module.exports = function (grunt) { this.files.forEach(function (filePair) { + if (filePair.exclude && grunt.file.isMatch(filePair.exclude, filePair.src)) { + return; + } + is_expanded = filePair.orig.expand || false; if (filePair.action === 'delete') {