From 23837e4dc1ed0761e26dc32fbe9e23f5f81415b4 Mon Sep 17 00:00:00 2001 From: Chris Pitt Date: Thu, 15 Jun 2017 17:08:05 +0100 Subject: [PATCH] Use case insensitive glob matching, to pick up images/etc with uppercase extensions (#1176) --- lib/utils/post-build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/post-build.js b/lib/utils/post-build.js index 87ede30020955..98362e0d6cabb 100644 --- a/lib/utils/post-build.js +++ b/lib/utils/post-build.js @@ -59,7 +59,7 @@ module.exports = (program, cb) => { const assetTypes = '*.jpg|*.jpeg|*.png|*.pdf|*.gif|*.ico|*.svg|*.pdf|*.txt|*.zip|CNAME' const globString = `${directory}/pages/**/?(${assetTypes})` - return glob(globString, { follow: true }, (e, files) => + return glob(globString, { follow: true, nocase: true }, (e, files) => async.map( files, copy,