无论如何在Less中为已编译的CSS启用行引用注释?
我已经研究了一下,并且无法找到有关如何启用行注释的任何信息。这在调试时很难,因为很难知道编译的css类来自哪个文件更少。
答案 0 :(得分:1)
Less编译器的帮助将向您显示您可以设置line-numbers
选项
-------------------------- Deprecated ---------------- --line-numbers=TYPE Outputs filename and line numbers. TYPE can be either 'comments', which will output the debug info within comments, 'mediaquery' that will output the information within a fake media query which is compatible with the SASS format, and 'all' which will do both.
请注意,此选项已弃用,以支持v3 CSS源地图,另请参阅:Compile LESS files with source maps。