From 954e05005513bb33fffd65536720f2600f9d71d8 Mon Sep 17 00:00:00 2001 From: Daniel Lo Nigro Date: Sat, 25 Feb 2017 17:14:53 -0800 Subject: [PATCH] Only include files in glob, not directory. References #1029 --- website/server/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/generate.js b/website/server/generate.js index 8dfbc95f6c..6a9ec94029 100644 --- a/website/server/generate.js +++ b/website/server/generate.js @@ -22,7 +22,7 @@ server.noconvert = true; // requests. var queue = Promise.resolve(); -glob('src/**/*', function(er, files) { +glob('src/**/*', {nodir: true}, function(er, files) { files.forEach(function(file) { var targetFile = file.replace(/^src/, 'build');