Skip to content

Conversation

@johanronn77
Copy link

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

Johan Rönn added 3 commits May 31, 2013 08:27
Start changing to reach goal of adding debug-info
Adds -sass-debug-info to the css
@marklagendijk
Copy link
Owner

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?

@4DallasC
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants