문제

it looks like there is a bunch of dead code (code that is commented out) in the lesscss javascript compiler code. Is there a reason for this? When downloading right from the website the file is 34kb, after removing the dead code it is 5.78kb (left in the copyright comments).

도움이 되었습니까?

해결책

When I throw the LESS JavaScript code at a compressor, rarely any code disappears.

When I view the code in my editor (Kate), the Syntax highlighting marks a large part of the code as comments, starting from:

(i.charAt(0)=="/"?i=a.location.protocol+"//"+a.location.host+i:i=g.slice(0,g.last
                                         ^^ From here on

This error is probably caused by the size of the string (34KB at one line). When I add a linebreak before +"//"...., the syntax highlighting works as intended.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top