D
Deno

help

Using custom font using fresh and tailwindcss

NNewMeeh12/9/2023
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
Mmarvinh.12/9/2023
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.
NNewMeeh12/9/2023
Done. thank you for the quick answer
Mmarvinh.12/9/2023
Ah that commit is released as part of Fresh 1.6.1
NNewMeeh12/9/2023
Yes I was using Fresh 1.6.0, it works just fine now ! ๐Ÿ™‚

Looking for more? Join the community!

Recommended Posts
wasm-vips file does not existOk this is not directly a deno thing, but anyway. Has anyone successfully used wasm-vips with `vips.update imports to latest version in `deno.json`i defined imports as URLs with the version of the packages in my `deno.json` file. i would like to kAttempt on adding ref/unref on UDPHello, issue [#20138](https://github.com/denoland/deno/issues/20138) is about `unref` not being implFresh migrating from serveTlsIn my `main.ts` file for Fresh I have some code I borrowed from source a few minor versions ago to sServing static websiteI have a static website with an index.html that imports a main.js and css file. When serving index.hpositional arguments deno taskCan I use positional arguments in deno task? I have a number of scripts that I frequently want to rLinter does not warn about lack of constructor arguments.The vscode shows that there are no arguments, but linter does not show it as an error: ``` root@instCan you make a fresh route detect, if it is being requested by `deno run`Can you make a fresh route detect, if it is being requested by `deno run` like `deno run https://locDeno dependency top level await work aroundI have the following error while building with dnt ``` [dnt] Top level await cannot be used when disBundling a CLI written in JS with DenoHi team, Thanks for writing this [excellent blog-post (and video)](https://deno.com/blog/roll-your-Leaking operation op_http_close in testsI tried to update my repositories from Deno 1.38.1 to 1.38.4. After the update my test keeps failingDoes BroadcastChannel preserve the message order if the receiver is in a different geo-location?Does BroadcastChannel preserve the message order if the receiver is in a different geo-location?