-
Option name:
"minify" -
Option values:
true/false
Input / Output
This example showcases howMinify 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:
-
trueto!0
-
falseto!1
-
Infinityto1/0
-
undefinedtovoid 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 fileinput.js and write the output to a file named output.js.
Usage Example
Enabled In
- High Preset: Yes
- Medium Preset: Yes
- Low Preset: Yes