WinLess icon indicating copy to clipboard operation
WinLess copied to clipboard

Added support to add debug-info in css.

Open johanronn77 opened this issue 12 years ago • 2 comments

Added support to add debug-info in css.

Adding --line-numbers=all to the Less compiler.

More information : http://q42.nl/blog/post/35203391115/debug-sass-and-less-in-webkit-inspector-and-save-css-cha

johanronn77 avatar May 31 '13 09:05 johanronn77

Sorry that I haven't responded to this for over a month. The reason for this is the same reason as to why I don't have been improving WinLess myself, just too busy with other stuff.

Could you provide a screenshot of how you imlemented this option?

marklagendijk avatar Jul 13 '13 17:07 marklagendijk

@marklagendijk, don't apply this change. It's better just to modify:-

        private static string WinLess::LessCompiler::CreateCompileArguments(string lessFile, string cssFile, bool minify)
        {
            string arguments = string.Format("\"{0}\" \"{1}\" --no-color", lessFile, cssFile);
            return string.Format(minify ? "{0} --clean-css=\"--compatibility=ie8 --advanced\"" : "{0} --line-numbers=all", arguments);
        }

And while I've got your attention, can you also replace the post built event ROBOCOPY with:-

XCOPY "$(ProjectDir)node_modules\*" "$(TargetDir)node_modules" /s /i /Y

4DallasC avatar Jul 26 '16 04:07 4DallasC