Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esbuild: Add webp to the file endings loaded as files #863

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

moonglum
Copy link
Contributor

@moonglum moonglum commented Mar 7, 2024

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

@matiaskorhonen
Copy link
Contributor

Sort of related: .jpeg should be added as well

I ran in to that recently but never got around to opening a PR…

@moonglum
Copy link
Contributor Author

Thanks, @matiaskorhonen 👍 Added it, alongside AVIF and JPEG-XL. That would then complete the list of the image formats I have on my radar.

@jaredcwhite
Copy link
Member

Fantastic!

@jaredcwhite jaredcwhite merged commit 628028c into bridgetownrb:main Mar 14, 2024
@moonglum moonglum deleted the patch-1 branch March 14, 2024 08:53
@matiaskorhonen
Copy link
Contributor

Should this change have actually gone into bridgetown-core/lib/bridgetown-core/commands/esbuild/esbuild.defaults.js.erb instead?

@moonglum
Copy link
Contributor Author

I think you're right, @matiaskorhonen . PR is here: #870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants