Closed moonglum closed 6 months ago
Sort of related: .jpeg
should be added as well
I ran in to that recently but never got around to opening a PR…
Thanks, @matiaskorhonen :+1: Added it, alongside AVIF and JPEG-XL. That would then complete the list of the image formats I have on my radar.
Fantastic!
Should this change have actually gone into bridgetown-core/lib/bridgetown-core/commands/esbuild/esbuild.defaults.js.erb
instead?
I think you're right, @matiaskorhonen . PR is here: https://github.com/bridgetownrb/bridgetown/pull/870
This is a 🙋 feature or enhancement.
Summary
This PR adds a few file extensions as a file type to the list in
esbuild.defaults.js
:.jpeg
.avif
.jxl
.webp
With this change, WebP, AVIF and JPEG-XL images are supported in the same way that PNG and JPEG are supported. It also adds
.jpeg
as the alternative file extension for JPEG files.Context
This is from a discussion about me failing to fingerprint images