mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36: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",
|
||||
sourceMap: function (filename) {
|
||||
return filename.replace(/\.js$/, '.js.map');
|
||||
}
|
||||
},
|
||||
sourceMappingURL: function (filename) {
|
||||
return filename.replace(/\.js$/, '.js.map').replace('build/openseadragon/', '');
|
||||
},
|
||||
},
|
||||
openseadragon: {
|
||||
src: [ distribution ],
|
||||
|
Loading…
Reference in New Issue
Block a user