From 756131299917428cf670040c55a8dc629b1d35d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Fri, 13 Dec 2024 11:17:17 +0100 Subject: [PATCH] feat: Keep image from dataproxy --- packages/cozy-scripts/config/webpack.config.pictures.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/cozy-scripts/config/webpack.config.pictures.js b/packages/cozy-scripts/config/webpack.config.pictures.js index f9cc4d2b3..5d4d59d96 100644 --- a/packages/cozy-scripts/config/webpack.config.pictures.js +++ b/packages/cozy-scripts/config/webpack.config.pictures.js @@ -32,6 +32,12 @@ module.exports = { include: /cozy-ui\/transpiled\/react(\/|\\)/, loader: require.resolve('file-loader') }, + // We want to keep static images used by cozy-dataproxy-lib inside components + { + test: /\.(png|jpe?g|gif)$/i, + include: /cozy-dataproxy-lib\/dist\/assets(\/|\\)/, + loader: require.resolve('file-loader') + }, /* For public pages, we need to have all used assets into the build/public folder in order to be served by cozy-stack in the public pages