KC's Workspace
    Preparing search index...

    Defines which attributes of an HTML element should be treated as asset sources. Used in html.additionalAssetSources configuration.

    interface HtmlAssetSource {
        filter?: (data: HtmlAssetSourceFilterData) => boolean;
        srcAttributes?: string[];
        srcsetAttributes?: string[];
    }
    Index
    filter?: (data: HtmlAssetSourceFilterData) => boolean

    Called before handling an attribute to determine if it should be processed.

    srcAttributes?: string[]

    Attributes that contain a single asset URL.

    ['src', 'data-src-dark']
    
    srcsetAttributes?: string[]

    Attributes that contain srcset-format URLs.

    ['srcset', 'imagesrcset']