Gruntjs 少行参考注释

Gruntjs 少行参考注释,gruntjs,less,Gruntjs,Less,是否有任何方法可以在更少的时间内对已编译的CSS启用行引用注释 我做了一些研究,没有找到任何关于如何启用行注释的信息。调试时很难做到这一点,因为很难知道编译后的css类来自哪个更少的文件。更少的编译器的帮助将显示您可以设置行号选项 请注意,此选项已被弃用,取而代之的是v3 CSS sourcemap,另请参见:。您正在寻找吗?是!!!看起来你也可以用grunt来做。 -------------------------- Deprecated ---------------- --line-n

是否有任何方法可以在更少的时间内对已编译的CSS启用行引用注释


我做了一些研究,没有找到任何关于如何启用行注释的信息。调试时很难做到这一点,因为很难知道编译后的css类来自哪个更少的文件。

更少的编译器的帮助将显示您可以设置
行号
选项


请注意,此选项已被弃用,取而代之的是v3 CSS sourcemap,另请参见:。

您正在寻找吗?是!!!看起来你也可以用grunt来做。
-------------------------- 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.