Skip to content

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

Entèfas: CdnProvider

Alfa

Yon CDN ki ka sèvi fichye pake npm. Founisè yo pa janm kode non pake a dirèkteman — yo sèlman konnen kijan pou fòme yon URL soti nan yon CdnFile.

Pwopriyete

id

id: string

Alfa

Idantifyan ki estab, eg. "jsdelivr".


label

label: string

Alfa

Non ki fasil pou moun li, eg. "jsDelivr".


supportsCombine

supportsCombine: boolean

Alfa

Si CdnProvider.buildCombineUrl enplemante.

Metòd

buildUrl()

buildUrl(file, options?): string

Alfa

Konstwi URL pou yon dosye sèl.

Paramèt

file

CdnFile

options?

CdnBuildOptions

Retounen

string


buildCombineUrl()?

optional buildCombineUrl(files, options?): string

Alfa

Konstwi yon URL ki sèvi plizyè dosye kole ansanm. Obligatwa si e sèlman si supportsCombine.

Paramèt

files

CdnFile[]

options?

CdnBuildOptions

Retounen

string