FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app will be generated without minified code. #resolve

This commit is contained in:
Italo Rossi 2015-09-03 15:44:34 -03:00
parent 612729dab5
commit 00c75780d1

View File

@ -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,