mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
Strip build prefix from sourceMappingURL (see #51)
Previously the sourceMappingURL would be prefixed with "build/openseadragon/"
This commit is contained in:
parent
6e074188d4
commit
ae881689ec
@ -82,7 +82,10 @@ module.exports = function(grunt) {
|
|||||||
preserveComments: "some",
|
preserveComments: "some",
|
||||||
sourceMap: function (filename) {
|
sourceMap: function (filename) {
|
||||||
return filename.replace(/\.js$/, '.js.map');
|
return filename.replace(/\.js$/, '.js.map');
|
||||||
}
|
},
|
||||||
|
sourceMappingURL: function (filename) {
|
||||||
|
return filename.replace(/\.js$/, '.js.map').replace('build/openseadragon/', '');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
openseadragon: {
|
openseadragon: {
|
||||||
src: [ distribution ],
|
src: [ distribution ],
|
||||||
|
Loading…
Reference in New Issue
Block a user