From 21a8145fe8883672cbf42304dbbb96ea7ab91d90 Mon Sep 17 00:00:00 2001 From: Joshua Sierles Date: Wed, 14 Oct 2015 20:40:16 +0200 Subject: [PATCH] instead of ignoring the documention javascript support files, just write them without trying to process them --- website/server/generate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/server/generate.js b/website/server/generate.js index 71c382ede..ab59a51ad 100644 --- a/website/server/generate.js +++ b/website/server/generate.js @@ -22,11 +22,11 @@ server.noconvert = true; // requests. var queue = Promise.resolve(); -glob('src/**/*.*', { ignore: 'src/react-native/js/**/*' }, function(er, files) { +glob('src/**/*.*', function(er, files) { files.forEach(function(file) { var targetFile = file.replace(/^src/, 'build'); - if (file.match(/\.js$/)) { + if (file.match(/\.js$/) && !file.match(/src\/react-native\/js/)) { targetFile = targetFile.replace(/\.js$/, '.html'); queue = queue.then(function() { return new Promise(function(resolve, reject) {