removeUnusedResources

Function

Removes any image "crop" versions that are no longer used in the site layout. TODO: Move to a module that is shared with Pages and then also wire into the Page update cycle.

Parameters

Parameter Type Default Notes
id Required string

Id of the site or page item

layout Required ILayout

Layout

hubRequestOptions Required IHubRequestOptions

Returns

Promise<any[]>

Function defined in packages/sites/src/layout/remove-unused-resources.ts:24