wordpress-webpack-workflow
wordpress-webpack-workflow copied to clipboard
How to add to your webpack config directory with fonts?
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');
}