aws-cdk-lib.ILocalBundling

interface ILocalBundling

LanguageType name
.NETAmazon.CDK.ILocalBundling
Gogithub.com/aws/aws-cdk-go/awscdk/v2#ILocalBundling
Javasoftware.amazon.awscdk.ILocalBundling
Pythonaws_cdk.ILocalBundling
TypeScript (source)aws-cdk-lib » ILocalBundling

Local bundling.

Methods

NameDescription
tryBundle(outputDir, options)This method is called before attempting docker bundling to allow the bundler to be executed locally.

tryBundle(outputDir, options)

public tryBundle(outputDir: string, options: BundlingOptions): boolean

Parameters

  • outputDir string — the directory where the bundled asset should be output.
  • options BundlingOptions — bundling options for this asset.

Returns

  • boolean

This method is called before attempting docker bundling to allow the bundler to be executed locally.

If the local bundler exists, and bundling was performed locally, return true. Otherwise, return false.