diff --git a/build.js b/build.js index 888e20f9..2f80b24b 100644 --- a/build.js +++ b/build.js @@ -191,10 +191,8 @@ var filesToInclude = [ if (buildMinified) { for (var i = 0; i < filesToInclude.length; i++) { - var fileNameWithoutSlashes = filesToInclude[i].replace(/\//g, '^'); - if (!filesToInclude[i]) continue; - + var fileNameWithoutSlashes = filesToInclude[i].replace(/\//g, '^'); exec('uglifyjs -nc ' + filesToInclude[i] + ' > tmp/' + fileNameWithoutSlashes); } }