diff --git a/tasks/jscpd.js b/tasks/jscpd.js index bcf1032..3a91818 100644 --- a/tasks/jscpd.js +++ b/tasks/jscpd.js @@ -10,6 +10,12 @@ module.exports = function(grunt) { options.path = this.data.path; options.output = this.data.output; + if (this.data.exclude === undefined) { + options.exclude = null; + } else { + options.exclude = this.data.exclude; + } + console.log(jscpd); try { @@ -22,4 +28,4 @@ module.exports = function(grunt) { }); -}; \ No newline at end of file +};