code: function fetchFilePathsByType(distFiles, basePath, type) {
    return distFiles
      .filter(function(filePath) {
        return new RegExp('assets/.*\\.' + type + '$').test(filePath);
      })
      .map(function(filePath) {
        return path.join(basePath, filePath);
      });
  }
docs: This function finds all files of a given type inside the `assets` folder of a given build and returns them with a new basePath prepended