Documentation Index
Fetch the complete documentation index at: https://mintlify.com/konhi/elevenlabs-speech-to-text-api-ui/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The project uses Bun’s native build system with a custom build script (build.ts) that processes HTML entrypoints and bundles all assets for production.
Build Configuration
The build process is configured inbuild.ts:125-136 with the following defaults:
Default Settings
- Output Directory:
dist/ - Minification: Enabled
- Target: Browser
- Sourcemaps: Linked (external .map files)
- Plugins: Tailwind CSS plugin (bun-plugin-tailwind)
- Entrypoints: All
.htmlfiles insrc/directory
Building for Production
Run the build command
build.ts script which:- Cleans the previous
dist/directory - Scans for all HTML entrypoints in
src/ - Bundles JavaScript, CSS, and processes Tailwind
- Outputs minified files to
dist/
Build Options
The build script accepts command-line arguments to customize the build process. View all available options:Common Build Options
Available Options
| Option | Description | Default |
|---|---|---|
--outdir <path> | Output directory | dist |
--minify | Enable minification | true |
--sourcemap <type> | Sourcemap type (none|linked|inline|external) | linked |
--target <target> | Build target (browser|bun|node) | browser |
--format <format> | Output format (esm|cjs|iife) | - |
--splitting | Enable code splitting | - |
--external <list> | External packages (comma separated) | - |
--public-path <path> | Public path for assets | - |
Production Server
After building, you can run the production server:NODE_ENV=production bun src/index.ts
The production server:
- Serves static files from the
dist/directory - Runs in production mode for optimized performance
- Uses Bun’s built-in HTTP server
Development vs Production
Build Output Structure
After runningbun run build, your dist/ directory will contain:
Troubleshooting
Build Fails
If the build fails, ensure:- All dependencies are installed:
bun install - You’re using Bun version 1.x or higher:
bun --version - The
src/directory contains valid HTML entrypoints