From 3ed4790655aeabbd53fcf8acc0f63e66ab1974b8 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Fri, 23 Oct 2020 12:09:34 -0400 Subject: [PATCH] fix(@angular-devkit/build-angular): support emitting AVIF image files (cherry picked from commit e22c196c32278dee78f56088613de51bbf826131) --- .../angular_devkit/build_angular/src/webpack/configs/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index a1df69728ee9..1e4e5a730387 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -496,7 +496,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { strictExportPresence: true, rules: [ { - test: /\.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)$/, + test: /\.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani|avif)$/, loader: require.resolve('file-loader'), options: { name: `[name]${hashFormat.file}.[ext]`,