Skip to main content
  • Option name: "minify"
  • Option values: true/false

Input / Output

This example showcases how Minify transforms the code. Try it out by changing the input code and see changes apply in real-time.
Input.js

Minification Techniques

  • Dead code elimination
  • Variable grouping
  • Constant folding
  • Shorten literals:
    • true to !0
    • false to !1
    • Infinity to 1/0
    • undefined to void 0
  • Remove unused variables and functions
  • Bracket to dot notation
  • Remove redundant braces
  • If statement to ternary operator
  • Expression consolidation

Usage Example

The provided code example will obfuscate the file input.js and write the output to a file named output.js.
Usage Example

Enabled In