mishoo/UglifyJS — Issue #246: command line with --beautify change local var params
Author: leobalter
Created: 2011-10-24 18:57:09+00:00
State: open

Calling Uglify with --beautify param does change local variables parameters to compressed ones.

In the webservice I'm calling with PimpMyJS I solved this by skipping mangle and squeeze proccess.

Just something like:

```Javascript
if (!options.codegen_options.beautify) {
ast = pro.ast_mangle(ast);
ast = pro.ast_squeeze(ast);
}
```

ast_mangle and ast_squeeze should not be called in beautify process.