Skip to content

How to add to your webpack config directory with fonts? #6

@Fichtner21

Description

@Fichtner21

Hi i have problem with configuration webpack.
I want to add two custom fonts to my project so i add fonts directory in src

assets
--public
--src
----fonts
------haylard
--------HalyardDisplayRegular.ttf
------bebusneuebold
--------BebasNeueBold.ttf
----images
----js
----postcss
----sass

What i should to do? In sass dictionary i have import

@font-face {
font-family: 'halyard';
src: url('../../fonts/halyard/HalyardDisplayRegular.ttf') format('truetype');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions