Skip to content

Commit 23837e4

Browse files
cjpeteKyleAMathews
authored andcommitted
Use case insensitive glob matching, to pick up images/etc with uppercase extensions (#1176)
1 parent f675200 commit 23837e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/post-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = (program, cb) => {
5959
const assetTypes =
6060
'*.jpg|*.jpeg|*.png|*.pdf|*.gif|*.ico|*.svg|*.pdf|*.txt|*.zip|CNAME'
6161
const globString = `${directory}/pages/**/?(${assetTypes})`
62-
return glob(globString, { follow: true }, (e, files) =>
62+
return glob(globString, { follow: true, nocase: true }, (e, files) =>
6363
async.map(
6464
files,
6565
copy,

0 commit comments

Comments
 (0)