MCPcopy Create free account
hub / github.com/jantimon/html-webpack-plugin / getAssetFiles

Method getAssetFiles

index.js:957–967  ·  view source on GitHub ↗

* Helper to return a sorted unique array of all asset files out of the asset object * @private

(assets)

Source from the content-addressed store, hash-verified

955 * @private
956 */
957 getAssetFiles(assets) {
958 const files = [
959 ...new Set(
960 Object.keys(assets)
961 .filter((assetType) => assetType !== "chunks" && assets[assetType])
962 .reduce((files, assetType) => files.concat(assets[assetType]), []),
963 ),
964 ];
965 files.sort();
966 return files;
967 }
968
969 /**
970 * Converts a favicon file from disk to a webpack resource and returns the url to the resource

Callers 1

generateHTMLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected