index.js
function _getThemeRootHash(sThemeRootPath, sThemeName, oOptions) {
  // read relevant resources for hash generation
  const aAssetContents = _readAllFiles(sThemeRootPath)

  // generate hash based on library CSS files in theme root
  const aBufferList = aAssetContents.map(oContent => new Buffer(oContent))
  const sNewHash = _createHash(aBufferList, oOptions)

  return sNewHash
}
function _getThemeRootHash(sThemeRootPath, sThemeName, oOptions) {
  // read relevant resources for hash generation
  const aAssetContents = _readAllFiles(sThemeRootPath)

  // generate hash based on library CSS files in theme root
  const aBufferList = aAssetContents.map(oContent => new Buffer(oContent))
  const sNewHash = _createHash(aBufferList, oOptions)

  return sNewHash
}
function _getThemeRootHash ( sThemeRootPath , sThemeName , oOptions ) { // read relevant resources for hash generation const aAssetContents = _readAllFiles ( sThemeRootPath ) // generate hash based on library CSS files in theme root const aBufferList = aAssetContents . map ( oContent => new Buffer ( oContent ) ) const sNewHash = _createHash ( aBufferList , oOptions ) return sNewHash }
Generate hash for theme roots directory.
@param {string} [sThemeRootPath] Theme root path.
@param {string} [sThemeName] Theme name.
@param {Object} [oOptions] Cach buster options.
@param {Object} [oOptions.hash] Hash generation options.
@param {string} [oOptions.HASH_TYPE] Hash type.
@param {string} [oOptions.DIGEST_TYPE] Digest type.
@param {number} [oOptions.MAX_LENGTH] Maximum hash length.
@returns {string|null} Generated hash.
Generate hash for theme roots directory .