* Helper to return a sorted unique array of all asset files out of the asset object * @private
(assets)
| 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 |