AssetData: {
    cdnMap?: string | Record<string, string>;
    pathMap?: AssetPathMap;
}

data for loading assets, including CDN mapping or base path mapping

If CDN mapping is specified, then it will be used first, and then the path mapping if nothing is found in CDN mapping.

Type declaration

  • Optional cdnMap?: string | Record<string, string>

    path to JSON file with CDN mapping data or the actual mapping data

  • Optional pathMap?: AssetPathMap

    Mapping of base path for static assets. default: { base: "/js" }