build/compare-size.js
function(task, compressors) {
    var sizes = {},
      files = processPatterns(task.files, function(pattern) {
        // Find all matching files for this pattern.
        return glob.sync(pattern, { filter: "isFile" });
      });

    files.forEach(function(src) {
      var contents = file.read(src),
        fileSizes = (sizes[src] = { "": contents.length });
      if (compressors) {
        Object.keys(compressors).forEach(function(compressor) {
          fileSizes[compressor] = compressors[compressor](contents);
        });
      }
    });

    return sizes;
  }
function(task, compressors) {
    var sizes = {},
      files = processPatterns(task.files, function(pattern) {
        // Find all matching files for this pattern.
        return glob.sync(pattern, { filter: "isFile" });
      });

    files.forEach(function(src) {
      var contents = file.read(src),
        fileSizes = (sizes[src] = { "": contents.length });
      if (compressors) {
        Object.keys(compressors).forEach(function(compressor) {
          fileSizes[compressor] = compressors[compressor](contents);
        });
      }
    });

    return sizes;
  }
function ( task , compressors ) { var sizes = { } , files = processPatterns ( task . files , function ( pattern ) { // Find all matching files for this pattern.
 return glob . sync ( pattern , { filter : "isFile" } ) ; } ) ; files . forEach ( function ( src ) { var contents = file . read ( src ) , fileSizes = ( sizes [ src ] = { "" : contents . length } ) ; if ( compressors ) { Object . keys ( compressors ) . forEach ( function ( compressor ) { fileSizes [ compressor ] = compressors [ compressor ] ( contents ) ; } ) ; } } ) ; return sizes ; }
Files helper.
Files helper .