From 1b556c13b051bab122bfa05bb9b048d646399dbe Mon Sep 17 00:00:00 2001 From: Vio Date: Wed, 9 Mar 2022 21:36:39 +0100 Subject: [PATCH] fix(utils): FileTypes - add apng, m4a, aac,oga,wav,aac --- packages/utils/src/config/file-types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/utils/src/config/file-types.js b/packages/utils/src/config/file-types.js index 535ff82f95..8dda8a854a 100644 --- a/packages/utils/src/config/file-types.js +++ b/packages/utils/src/config/file-types.js @@ -10,8 +10,8 @@ export const FILE_TYPE_OTHER = 'OTHER'; export const FILE_TYPE_PATTERNS = { [FILE_TYPE_CSS]: /\.css$/, [FILE_TYPE_JS]: /\.js$/, - [FILE_TYPE_IMG]: /\.(png|jpe?g|webp|gif|svg|ico|avif)$/, - [FILE_TYPE_MEDIA]: /\.(mp4|mp3|mov|webm|ogg)$/, + [FILE_TYPE_IMG]: /\.(a?png|jpe?g|webp|gif|svg|ico|avif)$/, + [FILE_TYPE_MEDIA]: /\.(mp4|mp3|m4a|aac|mov|webm|wav|ogg)$/, [FILE_TYPE_FONT]: /\.(woff|woff2|ttf|otf|eot)$/, [FILE_TYPE_HTML]: /\.(html?)$/, };