docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a small static web app that can be bundled for multiple outputs while applying the correct public URL prefix to every emitted asset reference.
/ as the public URL for all generated asset references (HTML, JS, CSS). @testhttps://cdn.example.com/static prefixes every emitted asset reference (including source maps) with that value. @testsrc/index.html referencing a JS module and a stylesheet.dist/; target-specific builds write to dist/<targetName>/./**
* Builds the app using the default public URL and writes assets to disk.
*/
export async function buildDefault(): Promise<void>;
/**
* Builds the app with a provided public URL prefix.
* @param {string} publicUrl base URL prefix for emitted asset references.
*/
export async function buildWithPublicUrl(publicUrl: string): Promise<void>;
/**
* Builds a named target with its own public URL and output directory.
* @param {string} targetName build target identifier.
* @param {string} publicUrl base URL prefix for that target's assets.
*/
export async function buildTargetWithPublicUrl(targetName: string, publicUrl: string): Promise<void>;Asset bundler used to build outputs with configurable public URLs.