File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,11 @@ declare module '*.aac' {
173
173
export default src
174
174
}
175
175
176
+ declare module '*.opus' {
177
+ const src : string
178
+ export default src
179
+ }
180
+
176
181
// fonts
177
182
declare module '*.woff' {
178
183
const src : string
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ export const KNOWN_ASSET_TYPES = [
115
115
'wav' ,
116
116
'flac' ,
117
117
'aac' ,
118
+ 'opus' ,
118
119
119
120
// fonts
120
121
'woff2?' ,
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ export function registerCustomMime(): void {
47
47
mrmime . mimes [ 'flac' ] = 'audio/flac'
48
48
// mrmime and mime-db is not released yet: https://github.com/jshttp/mime-db/commit/c9242a9b7d4bb25d7a0c9244adec74aeef08d8a1
49
49
mrmime . mimes [ 'aac' ] = 'audio/aac'
50
+ // https://wiki.xiph.org/MIME_Types_and_File_Extensions#.opus_-_audio/ogg
51
+ mrmime . mimes [ 'opus' ] = 'audio/ogg'
50
52
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
51
53
mrmime . mimes [ 'eot' ] = 'application/vnd.ms-fontobject'
52
54
}
You can’t perform that action at this time.
0 commit comments