diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/bundler/executables.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/bundler/executables.md b/docs/bundler/executables.md index fcfd014ef..b6c7a084f 100644 --- a/docs/bundler/executables.md +++ b/docs/bundler/executables.md @@ -54,3 +54,7 @@ export default { You may need to specify a `--loader` for it to be treated as a `"file"` loader (so you get back a file path). Embedded files can be read using `Bun.file`'s functions or the Node.js `fs.readFile` function (in `"node:fs"`). + +# Minification + +To trim down the size of the executable a little, pass `--minify` to `bun build --compile`. This uses Bun's minifier to reduce the code size. Overall though, the binary is still way too big and we need to make it smaller. |