thanpolas / grunt-closure-tools

Google Closure Tools for grunt
MIT License
95 stars 22 forks source link

Source Maps relative to grunt file. #37

Closed aholla closed 11 years ago

aholla commented 11 years ago

Hi when tring to generate a souce map, all the source files are relative to the grunt file and not the location of the source map.

create_source_map : "<%= pkg.name %>.advanced.map",

output_wrapper: '(function(){%output%}).call(this);//@ sourceMappingURL=<%= pkg.name %>.advanced.map'

Is there a way to set the root path for the source map?

Thanks.

thanpolas commented 11 years ago

AFAIK no... I had the same problem just a few days ago...

I solved it by creating a symlink to the source...

It's an issue we have to take up with the sourcemap spec folks

aholla commented 11 years ago

ah right. Thanks.