Skip to content

pantoken-root / 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