Skip to content

Commit

Permalink
feat: Keep image from dataproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Dec 13, 2024
1 parent a35dcf0 commit 7561312
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/cozy-scripts/config/webpack.config.pictures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7561312

Please sign in to comment.