From dfd62c7c3a752deccc40cca1a1b5e06ae0686a37 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 14 Jan 2022 13:35:44 +0100 Subject: [PATCH] Fix webpack assets using wrong name (#1391) --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a1366c0400..b67170e39b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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", },