Текущая реализация:
Код: Выделить всё
.image {
content: '';
background-image: url('/assets/images/edit.svg');
width: 12px;
height: 6px;
cursor: pointer;
}
На самом деле ожидается http://localhost:4300/assets/images/edit.svg
Так что пытаемся чтобы установить префикс фактического пути MFE.
Например:
Код: Выделить всё
: root {
--mfe-path: htt://localhost:4300/
}
.image {
content: '';
// background-image: url("var(--mfe-path, '')}/assets/images/edit.svg"); - option 1
// background-image: url("#{var(--mfe-path, '')}/assets/images/edit.svg"); - option 2
background-image: url(var(--mfe-path) + '/assets/images/edit.svg'); - option 3
width: 12px;
height: 6px;
cursor: pointer;
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... le-angular