Skip to content

Commit 3980cc9

Browse files
Fix error caused by the absence of files when starting gulp task (#49)
1 parent 2f4722a commit 3980cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module.exports = (options = {}) => {
111111
}
112112
})();
113113
}, function (callback) {
114-
this.size = totalSize.values().next().value;
114+
this.size = totalSize.values().next().value || 0;
115115
this.prettySize = prettyBytes(this.size);
116116

117117
if (!(fileCount === 1 && options.showFiles) && hasSize(totalSize) && fileCount > 0 && options.showTotal) {

0 commit comments

Comments
 (0)