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
1 changed files with 2 additions and 2 deletions

View File

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