Strip build prefix from sourceMappingURL (see #51)

Previously the sourceMappingURL would be prefixed with
"build/openseadragon/"
This commit is contained in:
Chris Adams 2013-03-26 15:45:22 -04:00
parent 6e074188d4
commit ae881689ec

View File

@ -82,7 +82,10 @@ module.exports = function(grunt) {
preserveComments: "some",
sourceMap: function (filename) {
return filename.replace(/\.js$/, '.js.map');
}
},
sourceMappingURL: function (filename) {
return filename.replace(/\.js$/, '.js.map').replace('build/openseadragon/', '');
},
},
openseadragon: {
src: [ distribution ],