Skip to content

Commit c5661e5

Browse files
committed
Merge pull request #137 from mbarzda/master
fail when no files and urls are defined
2 parents 7a5130e + 026c1b6 commit c5661e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/uncss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function ( grunt ) {
3333
}
3434
});
3535

36-
if ( src.length === 0 ) {
36+
if ( src.length === 0 && f.orig.src.length === 0 ) {
3737
grunt.fail.warn( 'Destination (' + f.dest + ') not written because src files were empty.' );
3838
}
3939

0 commit comments

Comments
 (0)