From 8d71aee541660fd8128fd4ea1ea2e8f8342e6209 Mon Sep 17 00:00:00 2001 From: Jay Traband Date: Fri, 11 Sep 2015 02:00:42 -0700 Subject: [PATCH] Exclude node_modules from shredding --- public/doc-shredder/doc-shredder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/doc-shredder/doc-shredder.js b/public/doc-shredder/doc-shredder.js index 904fc2f59c..100b4c749e 100644 --- a/public/doc-shredder/doc-shredder.js +++ b/public/doc-shredder/doc-shredder.js @@ -88,6 +88,7 @@ function createShredPackage(shredOptions) { readFilesProcessor.sourceFiles = [ { // Process all candidate files in `src` and its subfolders ... include: includeFiles, + exclude: ['**/node_modules/**'], // When calculating the relative path to these files use this as the base path. // So `src/foo/bar.js` will have relative path of `foo/bar.js` basePath: options.examplesDir