lesscss javascript 编译器中的死代码
看起来 lesscss javascript 编译器代码中有一堆死代码(被注释掉的代码)。这是有原因的吗?直接从 网站 下载时,文件大小为 34kb,删除死代码后,文件大小为 5.78kb(版权注释中留下) )。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我将 LESS JavaScript 代码扔到压缩器时,很少有任何代码消失。
当我在编辑器 (Kate) 中查看代码时,语法突出显示将大部分代码标记为注释,从以下位置开始:
此错误可能是由字符串的大小引起的(34KB at one线)。当我在
+"//"....
之前添加换行符时,语法突出显示按预期工作。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:
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.