index.js
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);
    });
}
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);
    });
}
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 ) ; } ) ; }
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
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