From: Stefan Yohansson Date: Wed, 30 Sep 2015 18:05:48 +0000 (-0300) Subject: FS-8254 #resolve [verto_communicator] create source map file X-Git-Tag: v1.6.3~1^2~82^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e0bd45256c7b06bcbfc7b90f5fa0667914ee7fc;p=thirdparty%2Ffreeswitch.git FS-8254 #resolve [verto_communicator] create source map file --- diff --git a/html5/verto/verto_communicator/Gruntfile.js b/html5/verto/verto_communicator/Gruntfile.js index 13ad96523d..c68642c8a7 100644 --- a/html5/verto/verto_communicator/Gruntfile.js +++ b/html5/verto/verto_communicator/Gruntfile.js @@ -24,15 +24,16 @@ module.exports = function (grunt) { var debug = grunt.option('debug'); var uglify_config = { + options: { + sourceMap: true, + sourceMapIncludeSources:true + } }; + if (debug) { - uglify_config = { - options: { - beautify: debug ? true : false, - compress: debug ? false : true, - mangle: debug ? false : true - } - }; + uglify_config['options']['mangle'] = debug ? false : true; + uglify_config['options']['beautify'] = debug ? false : true; + uglify_config['options']['compress'] = debug ? false : true; } // Project configuration. grunt.initConfig({