Guide and best practices
Minification removes extra whitespace and can reduce script size for small assets. gene.re processes snippets in the browser, which is useful when the code is unpublished, client-specific, or part of a private prototype.
Use it for quick experiments, embed snippets, or comparing readable and compact versions. For production bundles, rely on your build pipeline so syntax transforms, sourcemaps, and dependency handling stay consistent.
Use cases
- Compact a small script before embedding it.
- Compare original and minified snippet size.
- Process private code without uploading it to a minifier API.
FAQ
Is my JavaScript uploaded?
No. Minification runs locally in the browser.
Should this replace a build tool?
No. Use your bundler for production applications.
Can minification break code?
It can if the source has syntax issues or depends on unusual formatting assumptions. Test the result.