lib/cache.js
function emitCacheInformationFile (loader, query, cacheFile, fileHash, iconResult) {
  if (!query.persistentCache) {
    return;
  }
  loader.emitFile(cacheFile, JSON.stringify({
    hash: fileHash,
    version: pluginVersion,
    optionHash: generateHashForOptions(query),
    result: iconResult
  }));
}
function emitCacheInformationFile (loader, query, cacheFile, fileHash, iconResult) {
  if (!query.persistentCache) {
    return;
  }
  loader.emitFile(cacheFile, JSON.stringify({
    hash: fileHash,
    version: pluginVersion,
    optionHash: generateHashForOptions(query),
    result: iconResult
  }));
}
function emitCacheInformationFile ( loader , query , cacheFile , fileHash , iconResult ) { if ( ! query . persistentCache ) { return ; } loader . emitFile ( cacheFile , JSON . stringify ( { hash : fileHash , version : pluginVersion , optionHash : generateHashForOptions ( query ) , result : iconResult } ) ) ; }
Stores the given iconResult together with the control hashes as JSON file
Stores the given iconResult together with the control hashes as JSON file