Skip to content
DocsTry Aspire
DocsTry

JavaScriptAppResource.withBuildScript

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface JavaScriptAppResource {
// ... omitted for brevity
withBuildScript(
scriptName: string,
args?: string[]): JavaScriptAppResource;
}

Signature

methodwithBuildScriptbuilder
Adds a build script annotation to the resource builder using the specified command-line arguments.
withBuildScript(
scriptName: string,
args?: string[]): JavaScriptAppResource
scriptNamestring
argsstring[]optional
JavaScriptAppResource

Defined on

This method is defined on the following type: