mishoo/UglifyJS — Issue #280: Removing Comments
Author: samstewart
Created: 2011-12-20 20:00:17+00:00
State: open

When using the library functions directly from Node.js, the comments are not removed.

`var ast = jsp.parse(orig_code); // parse code and get the initial AST

ast = pro.ast_mangle(ast); // get a new AST with mangled names
ast = pro.ast_squeeze(ast); // get an AST with compression optimizations
final_code = pro.gen_code(ast);`

Final code still contains comments. I know the --nc flag removes them in the command line tool, but the library seems to leave them in by default? Is this expected behavior?