gruntjs/grunt-contrib-less — pull request #9 by buberdds (2012-10-18 18:55:26+00:00)
Title: extend options with dumpLineNumbers

Extending options with the dumpLineNumbers will enable debugging in dev env.

less: {
development: {
options: {
'dumpLineNumbers': 'all'
},
files: {
"result.css": "source.less"
}
}
}

will output in css:

/* line LINE_NUMBER, PATH_TO_LESS_SOURCE */
@media -sass-debug-info{filename{font-family:"PATH_TO_LESS_SOURCE";}line{font-family:"LINE_NUMBER";}}

-sass-debug-info is now supported in chrome dev tools(experimental) and in extensions for ff and chrome.

The dumpLineNumbers option accepts following values: comments/mediaquery/all.