-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
On uglifyjs 1.2.x when i compress / mangle with max-line-len options at 10
var a = 0,
b = 0,
c = 0,
d = 0,
e = 0,
f = 0,
g = 0,
h = 0,
i = 0,
j = 0;
i had something like
var a=0,b=0
,c=0,d=0,e=0
,f=0,g=0,h=0
,i=0,j=0;
and now with uglifyjs 2.1.11 i have this
var a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;
so the line is larger than 10 characters. Maybe i don't do something right. This is my code
var UglifyJS = require('uglify-js2');
var ast = UglifyJS.parse(file_content);
var compressor = UglifyJS.Compressor({});
// Compress
ast.figure_out_scope();
ast = ast.transform(compressor);
// Mangle
ast.figure_out_scope();
ast.compute_char_frequency();
ast.mangle_names();
new_file_content = ast.print_to_string({ max_line_len: 10 });
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels