When to use Code Minifier
Your Webpack bundle is larger than expected and you want to verify that a specific utility file is actually being minified — or you're shipping a one-off inline script in an HTML email template where a full build tool is overkill. Paste your JavaScript, CSS, or HTML and esbuild-wasm compresses it in the browser: stripping whitespace, collapsing comments, and shortening variable names where safe. The before/after byte count sits right next to the output so you know exactly what you're saving before you ship it. Processing happens on your machine, and your code — including any business logic or unpublished feature flags — never reaches an outside server. Paste, minify, copy.
- Verify a utility module is shrinking before bundling it
- Minify an inline script going into an HTML email template
- Strip comments from a CSS file before a CDN deploy