Skip to content

pantoken / platforms/canvas-theme-editor/src / CdnProvider

インターフェース: CdnProvider

アルファ

npm パッケージファイルを配信できる CDN。プロバイダはパッケージ名をハードコードせず、— それらは CdnFile から URL を生成する方法だけを知っている。

プロパティ

id

id: string

アルファ

安定した識別子。例: "jsdelivr".


label

label: string

アルファ

人間が読みやすい名前。例: "jsDelivr".


supportsCombine

supportsCombine: boolean

アルファ

CdnProvider.buildCombineUrl が実装されているかどうか。

メソッド

buildUrl()

buildUrl(file, options?): string

アルファ

単一ファイルの URL を構築する。

パラメーター

file

CdnFile

options?

CdnBuildOptions

戻り値

string


buildCombineUrl()?

optional buildCombineUrl(files, options?): string

アルファ

複数のファイルを連結して配信する単一の URL を構築する。supportsCombine の場合に限り必須。

パラメーター

files

CdnFile[]

options?

CdnBuildOptions

戻り値

string