The question title pretty much says it all. I don't know how to configure the grunt-contrib-less task that now supports source maps. My expected result is to have Chrome DevTools CSS inspector to point to the Less rules. If possible, it would be ideal that the source maps be inline in the same outputted CSS file to avoid cluttering my workspace with separate source map files.
Thanks
First of all, you'll need to make sure that grunt-contrib-less is running a version that supports Source Maps. The newest version is 0.9.0, so update the version used in your package.json file, like this:
Now in the command line, call
npm installto install the update.Next, in your Gruntfile.js, configure Source Maps for your project.
You can follow a guide here: http://robdodson.me/blog/2012/12/28/debug-less-with-chrome-developer-tools/ or here: http://roots.io/using-less-source-maps/, but here's an example configuration:
The key is making sure that whatever you use for sourceMapURL is an actual URL that can be opened in the browser.