Build API
Use Programmatically
Simply import the build
function and pass it your config (it's typed!). Refer to the Configuration page for more info.
import { build } from 'esbuild-azure-functions';
await build({
/* your config here */
});
Use on the CLI
Usage on the CLI is straight forward. Either create a file called esbuild-azure-functions.config.json
in the directory you want to run esbuild-azure-functions from or pass the -c | --config
flag to specify a file at a custom location.
npx esbuild-azure-functions [-c <config location>]
Last updated