UNPKG

dt-app

Version:

The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.

33 lines (32 loc) 1.13 kB
/** * Options for building the HTML output for Vite builds */ export interface ViteHtmlBuildOptions { /** Path to the user's index.html template */ userIndexHtmlPath: string; /** App name for the HTML title */ appName: string; /** Base URL for assets */ normalizedBaseHref: string; /** Resolved entry JS bundle filename (e.g. 'main-abc123.js') */ mainJsBundle: string; /** Resolved CSS bundle filenames to inject as stylesheets */ cssBundles?: string[]; /** Distribution directory where CSS is output */ distDir: string; /** Whether to inject the SDK */ injectSdk: boolean; /** Optional self-monitoring agent URL */ agentUrl?: string; /** App ID for agent injection */ appId?: string; /** Output path for the generated HTML relative to dist */ outputDir: string; } /** * Builds the index.html file for Vite build output. * Handles script and stylesheet injection, SDK injection, and agent injection. * * @param options - Options for building the HTML */ export declare function buildViteHtml(options: ViteHtmlBuildOptions): Promise<void>;