webviewSource.local
Creates a local asset source pointing to an HTML file declared in your MOD's package.json assets.
function local(id: string): WebviewSourceLocal
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Asset ID (e.g., "menu:ui", "settings:ui") |
Returns
A WebviewSourceLocal object: { type: "local", id }.
Example
const source = webviewSource.local("my-mod:ui");
// { type: "local", id: "my-mod:ui" }