diff --git a/docs/usage/guides/bundler/anti-bloat.md b/docs/usage/guides/bundler/anti-bloat.md index bea7e7397..7f50073f2 100644 --- a/docs/usage/guides/bundler/anti-bloat.md +++ b/docs/usage/guides/bundler/anti-bloat.md @@ -57,6 +57,31 @@ Binary size can easily be reduced by stripping out debugging information from bi See your local `strip` manpage for more information and flags that can be used to specify what information gets stripped out from the binary. +### Allowlist config + +You can also reduce the application size with the `allowlist` config, and only enabling what you need. Sometimes this is useful with Tauri's [Bridge-Pattern](/docs/usage/patterns/bridge) or others, depending on needs. + +For example in `tauri.conf.json` file: + +```json +{ + "tauri": { + "allowlist": { + "all": false, + "fs": { + "writeFile": true, + "writeBinaryFile": true + }, + "shell": { + "execute": true + }, + "dialog": { + "save": true + } + } + } +} +``` ### UPX