wordpress-webpack-workflow icon indicating copy to clipboard operation
wordpress-webpack-workflow copied to clipboard

How to add to your webpack config directory with fonts?

Open Fichtner21 opened this issue 3 years ago • 0 comments
trafficstars

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'); }

Fichtner21 avatar Feb 07 '22 13:02 Fichtner21