index.js
function getBundleMinIf(bundle, build, min) {
  // Disable minification?
  if (bundle.noMin)
    return false;
  // Glob filter paths to exlude and include files for minification.
  // Start by excluding absolute paths of pre-minified files.
  var minGlobs = lodash.map(min, function minAbsPath(relPath) {
    return build.notPath(path.resolve(relPath));
  });
  if (minGlobs.length === 0) {
    // Nothing to exclude, so include all files.
    return true;
  }
  // Append a catch-all inclusion after all exclusions.
  minGlobs.push('**/*');
  return minGlobs;
}
function getBundleMinIf(bundle, build, min) {
  // Disable minification?
  if (bundle.noMin)
    return false;
  // Glob filter paths to exlude and include files for minification.
  // Start by excluding absolute paths of pre-minified files.
  var minGlobs = lodash.map(min, function minAbsPath(relPath) {
    return build.notPath(path.resolve(relPath));
  });
  if (minGlobs.length === 0) {
    // Nothing to exclude, so include all files.
    return true;
  }
  // Append a catch-all inclusion after all exclusions.
  minGlobs.push('**/*');
  return minGlobs;
}
function getBundleMinIf ( bundle , build , min ) { // Disable minification? if ( bundle . noMin ) return false ; // Glob filter paths to exlude and include files for minification. // Start by excluding absolute paths of pre-minified files. var minGlobs = lodash . map ( min , function minAbsPath ( relPath ) { return build . notPath ( path . resolve ( relPath ) ) ; } ) ; if ( minGlobs . length === 0 ) { // Nothing to exclude, so include all files. return true ; } // Append a catch-all inclusion after all exclusions. minGlobs . push ( '**/*' ) ; return minGlobs ; }
Returns a minIf value for a new bundle-info object.
@param {string} - Array of pre-minified source paths.
@returns {boolean|string} - The minIf value.
Returns a minIf value for a new bundle - info object .