From: Italo Rossi Date: Thu, 3 Sep 2015 18:44:34 +0000 (-0300) Subject: FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app will... X-Git-Tag: v1.6.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00c75780d1b04c471a8d6cd4c9b0fb4aaba16543;p=thirdparty%2Ffreeswitch.git FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app will be generated without minified code. #resolve --- diff --git a/html5/verto/verto_communicator/Gruntfile.js b/html5/verto/verto_communicator/Gruntfile.js index 7f54e039f4..cef6d68276 100644 --- a/html5/verto/verto_communicator/Gruntfile.js +++ b/html5/verto/verto_communicator/Gruntfile.js @@ -21,9 +21,22 @@ module.exports = function (grunt) { }; var ip = grunt.option('ip'); + var debug = grunt.option('debug'); + var uglify_config = { + }; + if (debug) { + uglify_config = { + options: { + beautify: debug ? true : false, + compress: debug ? false : true, + mangle: debug ? false : true + } + }; + } // Project configuration. grunt.initConfig({ + uglify: uglify_config, // Project settings config: config,