Cześć.
Wystawiłem swoją apke Angulara do testowania w środowisku produkcyjnym. I mam jeden problem otóż nie widzi mi ikon (z http://fontello.com/). Na środowisku dev wszystko dziła normalnie a na prod nie.
takie dostaje błędy w konsoli na prod:
OTS parsing error: invalid version tag
message:1 OTS parsing error: invalid version tag
message:1 OTS parsing error: invalid version tag
message:1 OTS parsing error: invalid version tag
message:1 OTS parsing error: invalid version tag
message:1 OTS parsing error: invalid version tag
message:1 OTS parsing error: invalid version tag
Failed to decode downloaded font: <URL>
message:1 Failed to decode downloaded font: https://test.pl/fontello.woff2?59093705
message:1 Failed to decode downloaded font: https://test.pl/fontello.woff?59093705
message:1 Failed to decode downloaded font: https://test.pl/fontello.ttf?59093705
message:1 Failed to decode downloaded font: https://test.pl/assets/fontello/font/fontello.woff2?59093705
message:1 Failed to decode downloaded font: https://test.pl/assets/fontello/font/fontello.woff?59093705
message:1 Failed to decode downloaded font: https://test.pl/assets/fontello/font/fontello.ttf?59093705
a tu daje kod jak popiołem fonty do Angulara :
angular.json:
"assets": [ "src/favicon.ico", "src/assets", "src/assets/fontello/css/fontello.css" ],
styles.less:
@import '~bootstrap/dist/css/bootstrap.min.css';
@import "assets/fontello/css/fontello.css";
@import "assets/color/style";
i dałem też do index.html:
<link rel="stylesheet" href="assets/fontello/css/fontello.css">
<link rel="icon" type="image/x-icon" href="favicon.ico">
Z góry bardzo dziękuje za pomoc.