mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
Grunt: generate source maps when compressing
This commit is contained in:
parent
b7eec5d60a
commit
6e074188d4
@ -79,7 +79,10 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
uglify: {
|
uglify: {
|
||||||
options: {
|
options: {
|
||||||
preserveComments: "some"
|
preserveComments: "some",
|
||||||
|
sourceMap: function (filename) {
|
||||||
|
return filename.replace(/\.js$/, '.js.map');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
openseadragon: {
|
openseadragon: {
|
||||||
src: [ distribution ],
|
src: [ distribution ],
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"grunt-contrib-compress": "~0.5.0",
|
"grunt-contrib-compress": "~0.5.0",
|
||||||
"grunt-contrib-concat": "~0.1.2",
|
"grunt-contrib-concat": "~0.1.2",
|
||||||
"grunt-contrib-jshint": "~0.1.1",
|
"grunt-contrib-jshint": "~0.1.1",
|
||||||
"grunt-contrib-uglify": "~0.1.1",
|
"grunt-contrib-uglify": "~0.2.0",
|
||||||
"grunt-contrib-qunit": "~0.2.0",
|
"grunt-contrib-qunit": "~0.2.0",
|
||||||
"grunt-contrib-connect": "~0.1.2",
|
"grunt-contrib-connect": "~0.1.2",
|
||||||
"grunt-contrib-watch": "~0.2.0",
|
"grunt-contrib-watch": "~0.2.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user