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:
commit
0c5a97739e
|
@ -24,15 +24,16 @@ module.exports = function (grunt) {
|
||||||
var debug = grunt.option('debug');
|
var debug = grunt.option('debug');
|
||||||
|
|
||||||
var uglify_config = {
|
var uglify_config = {
|
||||||
};
|
|
||||||
if (debug) {
|
|
||||||
uglify_config = {
|
|
||||||
options: {
|
options: {
|
||||||
beautify: debug ? true : false,
|
sourceMap: true,
|
||||||
compress: debug ? false : true,
|
sourceMapIncludeSources:true
|
||||||
mangle: debug ? false : true
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (debug) {
|
||||||
|
uglify_config['options']['mangle'] = debug ? false : true;
|
||||||
|
uglify_config['options']['beautify'] = debug ? false : true;
|
||||||
|
uglify_config['options']['compress'] = debug ? false : true;
|
||||||
}
|
}
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
|
Loading…
Reference in New Issue