diff options
author | 2023-08-25 04:33:54 -0700 | |
---|---|---|
committer | 2023-08-25 04:33:54 -0700 | |
commit | 10815a7d43e53b814ca38c68ba8edfd65e43027d (patch) | |
tree | dd1ced05dcd3f162bcea59d263e325cbc2bcabe4 | |
parent | f839640c17730d6f623eeb2eefdbc3d0f45088c1 (diff) | |
download | bun-10815a7d43e53b814ca38c68ba8edfd65e43027d.tar.gz bun-10815a7d43e53b814ca38c68ba8edfd65e43027d.tar.zst bun-10815a7d43e53b814ca38c68ba8edfd65e43027d.zip |
Update executables.md
-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. |