Merge pull request #521 in FS/freeswitch from ~STEFAN_YOHANSSON/freeswitch:feature/FS-8254-add-js-sourcemap-in-grunt-build to master

* commit '8e0bd45256c7b06bcbfc7b90f5fa0667914ee7fc':
  FS-8254 #resolve [verto_communicator] create source map file
This commit is contained in:
Ken Rice 2015-09-30 13:29:11 -05:00
commit 0c5a97739e
1 changed files with 8 additions and 7 deletions

View File

@ -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({