Skip to content

Commit

Permalink
Use case insensitive glob matching, to pick up images/etc with upperc…
Browse files Browse the repository at this point in the history
…ase extensions
  • Loading branch information
cjpete committed Jun 15, 2017
1 parent f675200 commit 15d1754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/post-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15d1754

Please sign in to comment.