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