API Reference / loadPacks · function
Function: loadPacks()
function loadPacks(
base,
manifest,
entries,
fetchPack,
options?): Promise<EngineData>;
Fetch the given packs, verify them, and return engine data with them
placed over base. See fetchPacks for what is checked and
selectPacks for choosing the entries.
Parameters
| Parameter | Type | Description |
|---|---|---|
base | EngineData | The data to build on, usually embeddedData. |
manifest | PackManifest | The site's pack manifest. |
entries | readonly PackManifestEntry[] | The packs to load, from selectPacks or chosen by hand. |
fetchPack | PackFetch | Returns the bytes of a manifest file. |
options | LoadPacksOptions | - |
Returns
Promise<EngineData>