1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

Compress images u2fkey/yubikey using avif/webp (#1232)

Co-authored-by: Hinton <oscar@oscarhinton.com>
This commit is contained in:
Simon Legner
2022-01-10 12:37:21 +01:00
committed by GitHub
parent 49f6cfab7f
commit 45284eefb3
10 changed files with 16 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ const moduleRules = [
type: "asset/resource",
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
test: /\.(jpe?g|png|gif|svg|webp|avif)$/i,
exclude: /.*(fontawesome-webfont)\.svg/,
generator: {
filename: "images/[name].[ext]",