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,