How to import font assets?

Discussão em 'Angular' iniciado por Corentin THIBAUD, Fevereiro 18, 2025.

  1. I am trying to create an Angular 19 library with a personalized fonts linked directly into a global SCSS file. On build time, I have the exact same error being raised by builder:

    src/lib/label/label.component.scss:3:11:
    3 │ src: url("../../assets/styles||file:../fonts/");
    ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Preprocessor stylesheets may not show the exact file location of the error.


    I've tried with various links and formats for my assets, event exporting it but nothing has worked.

    Please find a reproductive app with the bug here

    Thank you very much for your help !

    Continue reading...

Compartilhe esta Página