File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ declare module '*.cur' {
106
106
const src : string
107
107
export default src
108
108
}
109
+ declare module '*.jxl' {
110
+ const src : string
111
+ export default src
112
+ }
109
113
110
114
// media
111
115
declare module '*.mp4' {
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ export const KNOWN_ASSET_TYPES = [
133
133
'webp' ,
134
134
'avif' ,
135
135
'cur' ,
136
+ 'jxl' ,
136
137
137
138
// media
138
139
'mp4' ,
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ export function registerCustomMime(): void {
57
57
mrmime . mimes [ 'flac' ] = 'audio/flac'
58
58
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
59
59
mrmime . mimes [ 'eot' ] = 'application/vnd.ms-fontobject'
60
+ // https://github.com/lukeed/mrmime/issues/10
61
+ mrmime . mimes [ 'jxl' ] = 'image/jxl'
60
62
}
61
63
62
64
export function renderAssetUrlInJS (
You can’t perform that action at this time.
0 commit comments