Skip to main content

Managed (ui)

Functions

buildManagedNewtab

Build the managed new tab page from config.sourceDir using an internal Vite build, resolving the framework's Vite plugin from the user's project. Returns the manifest-relative entry path (e.g. "ui/newtab/index.html").

import { buildManagedNewtab } from '@hexajs-dev/ui';
function buildManagedNewtab(config: HexaUiSurfaceConfig | undefined, outputDir: string, compilerOptions: HexaUiCompilerOptions, bootstrapPath: string, platform: string, watch?: boolean, hmrAddress?: string, hmrSessionToken?: string, cwd?: string, framework?: UiFrameworkName): Promise<string>