Hey all,
Trying to use GitHub - fontsource/fontsource: Self-host Open Source fonts in neatly bundled NPM packages. to import fonts. I’m placing the following in my app.js file.
import "@fontsource/libre-franklin";
Which results in the following error:
┌ error ──────────────────────────────────────────────────────────────────┐
│ │
│ Module parse failed: Unexpected character '@' (2:0) │
│ You may need an appropriate loader to handle this file type, currently │
│ no loaders are configured to process this file. See │
│ https://webpack.js.org/concepts#loaders │
│ | /* libre-franklin-vietnamese-400-normal*/ │
│ > @font-face { │
│ | font-family: 'Libre Franklin'; │
│ | font-style: normal; │
└─────────────────────────────────────────────────────────────────────────┘
Any thoughts on how to resolve? First time using bud, but I’ve used fontsource many times in Laravel Mix projects without issue.