getAssetPackIntegrationCode | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function getAssetPackIntegrationCode

    • Get the link and script tags needed to add a specific assetpack

      Parameters

      • assetpack: string

        The name of the asset pack to integrate.

      • Optionaloptions: { cacheBuster?: string; designRoot?: string | null }
        • OptionalcacheBuster?: string

          A string to append as a cache buster to the asset URLs.

        • OptionaldesignRoot?: string | null

          The design root URL to resolve relative asset paths.

      Returns string

      The HTML string to include the asset pack's CSS and JavaScript.