You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both images will be copied to the output directory with the same name, so you only get the dark or light logo, that will be used in both cases.
This won't be an issue on ng build --prod with "outputHashing": "all" or "outputHashing": "media".
This also won't be an issue on ng serve --prod, as per this comment, but will definitely slow down local debugging.
This could be fixed by using assets relative path (/assets instead of ../../../assets), but then it would be an issue on ng build --prod, since I don't include assets/images in assets in angular.json. The reason is that I don't want them to be duplicated (in assets and root folder), and this is by design, as per this comment.
🔥 Exception or Error
WARNING in Conflict: Multiple assets emit different content to the same filename logo.png
Uh oh!
There was an error while loading. Please reload this page.
🐞 Bug report
Command (mark with an
x
)Is this a regression?
I don't know, since never needed this before.
Description
Assets with the same name, but different path, are copied over each other on
ng serve
orng build --prod
with"outputHashing": "none"
.🔬 Minimal Reproduction
Both images will be copied to the output directory with the same name, so you only get the dark or light logo, that will be used in both cases.
This won't be an issue on
ng build --prod
with"outputHashing": "all"
or"outputHashing": "media"
.This also won't be an issue on
ng serve --prod
, as per this comment, but will definitely slow down local debugging.This could be fixed by using assets relative path (
/assets
instead of../../../assets
), but then it would be an issue onng build --prod
, since I don't includeassets/images
inassets
inangular.json
. The reason is that I don't want them to be duplicated (inassets
and root folder), and this is by design, as per this comment.🔥 Exception or Error
WARNING in Conflict: Multiple assets emit different content to the same filename logo.png
🌍 Your Environment
The text was updated successfully, but these errors were encountered: