API

Function ResolveAssetUrl

  • Resolves an asset URL relative to a base URL. Absolute URLs (http://, https://) and data URIs are returned as-is.

    Parameters

    • assetUrl: string

      The asset URL to resolve.

    • baseUrl: string

      The base URL to resolve against (typically the folder containing the asset map file).

    Returns string

    The resolved URL.