From 8e0bd45256c7b06bcbfc7b90f5fa0667914ee7fc Mon Sep 17 00:00:00 2001 From: Stefan Yohansson Date: Wed, 30 Sep 2015 15:05:48 -0300 Subject: [PATCH] FS-8254 #resolve [verto_communicator] create source map file --- html5/verto/verto_communicator/Gruntfile.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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({