Grunt: generate source maps when compressing

This commit is contained in:
Chris Adams 2013-03-25 14:22:09 -04:00
parent b7eec5d60a
commit 6e074188d4
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -7,7 +7,7 @@
"grunt-contrib-compress": "~0.5.0",
"grunt-contrib-concat": "~0.1.2",
"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-connect": "~0.1.2",
"grunt-contrib-watch": "~0.2.0",