mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app will be generated without minified code. #resolve
This commit is contained in:
parent
612729dab5
commit
00c75780d1
@ -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,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user