Add path exclusion

This commit is contained in:
brunosimon
2016-11-20 22:40:37 +01:00
parent fadf6aba11
commit f686b16daa
5 changed files with 42 additions and 4 deletions
+8 -3
View File
@@ -1,5 +1,10 @@
{
"debug" : false,
"port" : 1571,
"max_file_size" : 2000
"debug" : false,
"port" : 1571,
"max_file_size": 99999,
"exclude" :
[
"node_modules/**",
"vendors/**"
]
}
+4
View File
@@ -55,6 +55,9 @@ class Keppler
if( typeof _options.max_file_size === 'undefined' )
_options.max_file_size = default_config.max_file_size
if( typeof _options.exclude === 'undefined' )
_options.exclude = default_config.exclude
// Save
this.options = _options
}
@@ -101,6 +104,7 @@ class Keppler
domain : this.options.domain,
debug : this.options.debug,
max_file_size: this.options.max_file_size,
exclude : this.options.exclude,
name : this.arguments[ 0 ]
} )
}