Updates 02/17/14
Z Goddard and I are working on fixing up source maps across the grunt-contrib suite. The planned options for the entire suite can be read about in this repo. We're also working on a new library, sourcemap-util
, that will provide helper functions for generating source maps with any library. I'll update this when there's more progress.
I've done enough research to now be able to answer my own question.
No, there is not really any good way to handle source maps right now with grunt.
Both usemin
and grunt-contrib-uglify
need updates for this to work as I'd like. I submitted a pull request to grunt-contrib-uglify
that is a good start on better source map support. With luck, this pull will be merged.
As for usemin
, I disagree with its approach to handling dependencies. I've begun a separate project, grunt-resourceful
, that goes about things differently. That project is still in its infancy, so I don't suggest using it now. I'll update this once 1.0.0
is released.