From 00c75780d1b04c471a8d6cd4c9b0fb4aaba16543 Mon Sep 17 00:00:00 2001 From: Italo Rossi Date: Thu, 3 Sep 2015 15:44:34 -0300 Subject: [PATCH] FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app will be generated without minified code. #resolve --- html5/verto/verto_communicator/Gruntfile.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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,