Skip to content

pantoken / tools/demo/src / ResolveOptions

介面: ResolveOptions

解析範例規格的選項。只有 self 提供者會使用 runner/demos/css 欄位。

Extended by

屬性

base?

optional base?: string

網站基底路徑,例如 /pantoken/(預設 /)。


runnerPath?

optional runnerPath?: string

Runner 頁面路徑,相對於 base(預設 play/index.html)。


demosPath?

optional demosPath?: string

自我託管的 demo 原始碼目錄,相對於 base(預設 demos/)。


cssUrls?

optional cssUrls?: readonly string[]

Runner 注入的樣式表 URL(注入其 chrome 以及每個呈現結果):元件 樣式表、多主題代幣樣式表,以及外掛/表面樣式表。Runner 透過切換 data-pantoken-theme 屬性來切換主題,因此一個代幣樣式表即可涵蓋所有主題。