Currently I have 3 fonts that I want to add to my React project:a, a light, a bold. My file structure:
/src ├── /fonts/ │ ├── /A.ttf │ ├── /A-
Using 'ttf-loader' from npm worked perfectly for me.
https://www.npmjs.com/package/ttf-loader
module: { rules: [ { test: /\.ttf$/, use: [ { loader: 'ttf-loader', options: { name: './font/[hash].[ext]', }, }, ] } ] }