npx wrangler deploy --minify

Category: Cloudflare

npx wrangler deploy --minify

Deploy with minified JavaScript

Minifies the bundled Worker before upload, shrinking the artifact and often improving cold-start times. Runtime behavior stays identical, but stack traces reference mangled names, which complicates debugging. Combine with --outdir to keep the minified output for inspection.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.