NewMeeh
NewMeeh•8mo ago

Using custom font using fresh and tailwindcss

Hello ! I recently followed this guide to switch to tailwindcss. I'm using a custom font that I include in my styles.css file using @import url('/fonts/herakles/stylesheet.css');. It works just fine in dev mode but when I try to build the project I get a file not found error as the tailwindcss plugin is searching my custom font in the _fresh/static/fonts/ not in static/fonts/... Does anyone know how can I change this behavior or copy my files in the _fresh/static/fonts/ directory before the build ?
Migrating to Tailwind | Fresh docs
Migrating from twind to Tailwind CSS
5 Replies
marvinh.
marvinh.•8mo ago
That is a bug and is something that is supposed to work. Can you file an issue for that here https://github.com/denoland/fresh/issues/new ? Just paste the discord message into the text box
GitHub
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
NewMeeh
NewMeeh•8mo ago
Done. thank you for the quick answer
marvinh.
marvinh.•8mo ago
Ah that commit is released as part of Fresh 1.6.1
NewMeeh
NewMeeh•8mo ago
Yes I was using Fresh 1.6.0, it works just fine now ! 🙂