This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uglify2 just got a --source-map-url option to fix the problem with the dist/ appearing in the url there, but it's only half fixed. I think the wrapping in a comment should be handled inside Uglify2 as well since it affects everyone and not just grunt or jQuery users. I opened ticket 108 there. When that gets fixed we'll need to remove our wrap lest we get double-wrapped.
Thanks @dmethvin. We should be safe from double wrapping, but will end up with an empty comment at the end of the file after we use a version of Uglify2 that fixes this (since I move the directive into our existing banner).
Actually, the more I think about this, the more I like the idea of managing the source map directive ourselves. Why have two comments in the minified source?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Should this be handled in Grunt? /cc @cowboy