I was able to fix my issue. I needed to run the following steps:
src/assets/styles/fonts.scss
file, I first corrected the broken url to match to a font file.../
as it was the source of my issue.Please find below the new versions of both files:
src/assets/styles/fonts.scss
:
@font-face {
font-family: "Roboto";
src: url("/fonts/Roboto-Regular.woff2");
}
$base: "Roboto";
ng-package.json
:
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/fonts-assets-scss",
"lib": {
"entryFile": "src/public-api.ts"
},
"assets": [
{"input": "src/assets/fonts", "glob": "**/*.woff2", "output": "fonts" }
]
}
Please find the corrected code on this branch