From ec1ded9f4cb4db6f16c705f58c42f30b47d7eef7 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Thu, 2 May 2024 23:05:57 +0100 Subject: [PATCH] fix(ssr): imported svg paths set wrong (#11012) follow up to https://github.com/mdn/yari/pull/10982 which fixes things for svgs too --- ssr/webpack.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ssr/webpack.config.js b/ssr/webpack.config.js index d773d11d5249..64a4195de08d 100644 --- a/ssr/webpack.config.js +++ b/ssr/webpack.config.js @@ -54,8 +54,18 @@ const config = { ref: true, }, }, - "file-loader?outputPath=/distimages/", + { + loader: "file-loader", + options: { + emitFile: false, + publicPath: "/", + name: "static/media/[name].[hash].[ext]", + }, + }, ], + issuer: { + and: [/\.(ts|tsx|js|jsx|md|mdx)$/], + }, }, { test: [/\.avif$/, /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],