I have a JS compressed file which is long about 14k and it is on one single line. This creates some problem on Clear Case, making check in impossible
Is there a way to fix clearcase?
If I whant to split the JS file on multiple lines, should I pay attention to something when inserting line breaks. Obviously I won’t split a string or anumber, after that any other non obvious thing to keep in mind?
I don’t know about ClearCase. A safe place to split is after a
;or}outside of a string constant since there shouldn’t be any comments in compressed JS.You can also split the file manually; the file probably doesn’t change often and 10 line feeds more or less won’t hurt the performance.