]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app will...
authorItalo Rossi <italorossib@gmail.com>
Thu, 3 Sep 2015 18:44:34 +0000 (15:44 -0300)
committerItalo Rossi <italorossib@gmail.com>
Thu, 3 Sep 2015 18:44:34 +0000 (15:44 -0300)
html5/verto/verto_communicator/Gruntfile.js

index 7f54e039f4a9af089d92ef054339affc1089789a..cef6d682764aadb1220e9e54975d2b1d53473d31 100644 (file)
@@ -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,