diff --git a/ssr/webpack.config.js b/ssr/webpack.config.js index e66ff19f784b..f1eabc156c65 100644 --- a/ssr/webpack.config.js +++ b/ssr/webpack.config.js @@ -50,11 +50,22 @@ const config = { ref: true, }, }, + "file-loader?outputPath=/distimages/", ], }, { - test: /\.(png|svg|jpg|gif)$/, - use: ["file-loader?outputPath=/distimages/"], + test: [/\.avif$/, /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/], + type: "asset", + parser: { + dataUrlCondition: { + maxSize: 0, + }, + }, + generator: { + emit: false, + publicPath: "/", + filename: "static/media/[name].[hash][ext]", + }, }, { test: /\.(css|scss)$/, loader: "ignore-loader" }, ],