KC's Workspace
    Preparing search index...
    interface HTMLOptions {
        additionalAssetSources?: Record<string, HtmlAssetSource>;
        cspNonce?: string;
    }
    Index
    additionalAssetSources?: Record<string, HtmlAssetSource>

    Define additional HTML elements and attributes to be treated as asset sources. This extends the built-in list that includes standard elements like <img src>, <video src>, etc.

    html: {
    additionalAssetSources: {
    // Custom web component
    'html-import': { srcAttributes: ['src'] },
    // Add data-* attributes to existing element
    'img': { srcAttributes: ['data-src-dark', 'data-src-light'] }
    }
    }
    cspNonce?: string

    A nonce value placeholder that will be used when generating script/style tags.

    Make sure that this placeholder will be replaced with a unique value for each request by the server.