-
I just tried tailwindcss v4 using the standalone CLI (without node.js). I set up the watcher:
with the following project path:
All my font and image How to resolve this? (I prefer not to update the paths in the source file, because then they won't work without tailwind, and I have to update all of them again when testing without tailwind. Clearly I'm missing a simple config setting somewhere right?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Paths should be relative to the @font-face {
…
src: url(../fonts/foo.woff2);
} Or <div class="bg-[url(../images/hero.webp)]"> Or if the @font-face {
…
src: url(/assets/fonts/foo.woff2);
} Or <div class="bg-[url(/assets/images/hero.webp)]"> |
Beta Was this translation helpful? Give feedback.
Paths should be relative to the
assets/css/tailwind-output.css
file, like:Or
Or if the
project
folder is served as the root of the host (i.e.http://localhost:3000/main.html
):Or