From 4c719f5c5dfd0b315200101ccc22436439bb97f5 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Fri, 26 Apr 2024 13:10:20 +0000 Subject: [PATCH] fix(ssr): imported svg paths set wrong 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$/],