From ae881689ec72b244129acfe58a98a1456dceb8f0 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 26 Mar 2013 15:45:22 -0400 Subject: [PATCH] Strip build prefix from sourceMappingURL (see #51) Previously the sourceMappingURL would be prefixed with "build/openseadragon/" --- Gruntfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index ff430a9a..d8f5364c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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 ],