提交 00c75780 authored 作者: Italo Rossi's avatar Italo Rossi

FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app…

FS-8124 - [verto_communicator] Adding option --debug to grunt build, dist app will be generated without minified code. #resolve
上级 612729da
...@@ -21,9 +21,22 @@ module.exports = function (grunt) { ...@@ -21,9 +21,22 @@ module.exports = function (grunt) {
}; };
var ip = grunt.option('ip'); 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. // Project configuration.
grunt.initConfig({ grunt.initConfig({
uglify: uglify_config,
// Project settings // Project settings
config: config, config: config,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论