Skip to content

Commit 026c1b6

Browse files
author
Martynas Barzda
committed
fail when no files and urls are defined
1 parent e8125e1 commit 026c1b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)