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

Support Jpeg XL images in static handling #18835

Open
4 tasks done
atjn opened this issue Nov 29, 2024 · 1 comment · May be fixed by #18855
Open
4 tasks done

Support Jpeg XL images in static handling #18835

atjn opened this issue Nov 29, 2024 · 1 comment · May be fixed by #18855
Labels

Comments

@atjn
Copy link

atjn commented Nov 29, 2024

Description

Currently, JXL images cannot automatically be imported as static assets the same way images like JPGs and AVIFs can. You have to manually add this.

Suggested solution

Add JXL support here:
https://github.com/vitejs/vite/blob/d6e6194706f0e3a889caa9303de2293cc0f131b2/packages/vite/src/node/constants.ts#L121..L135

Alternative

No response

Additional context

No response

Validations

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