Eleventy: Case insensitive file formats

Created on 27 Apr 2019  路  3Comments  路  Source: 11ty/eleventy

Currently the default set of file formats is all lower case. On windows, some tools I've used generated file names with uppercase extensions. Running eleventy just ignored these files and it took a bit of troubleshooting to determine what the issue is.

I have a feeling that just enabling case insensitivity might be a pretty big can of worms, but what about enabling it by default only on Windows and allowing an override in config?

bug

Most helpful comment

Eleventy should probably transform paths to lowercase when preforming file extension matching in general. I would avoid writing platform-specific code. This is definitely a bug.

All 3 comments

Eleventy should probably transform paths to lowercase when preforming file extension matching in general. I would avoid writing platform-specific code. This is definitely a bug.

Just submitted a PR for this item. Let me know if it looks reasonable.

Merged!

Was this page helpful?
0 / 5 - 0 ratings