1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

Fix webpack assets using wrong name (#1391)

This commit is contained in:
Oscar Hinton 2022-01-14 13:35:44 +01:00 committed by GitHub
parent 41d3bd8cf2
commit dfd62c7c3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ const moduleRules = [
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/, test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
exclude: /loading(|-white).svg/, exclude: /loading(|-white).svg/,
generator: { generator: {
filename: "fonts/[name].[ext]", filename: "fonts/[name][ext]",
}, },
type: "asset/resource", type: "asset/resource",
}, },
@ -39,7 +39,7 @@ const moduleRules = [
test: /\.(jpe?g|png|gif|svg|webp|avif)$/i, test: /\.(jpe?g|png|gif|svg|webp|avif)$/i,
exclude: /.*(fontawesome-webfont)\.svg/, exclude: /.*(fontawesome-webfont)\.svg/,
generator: { generator: {
filename: "images/[name].[ext]", filename: "images/[name][ext]",
}, },
type: "asset/resource", type: "asset/resource",
}, },