Tailwind v4 @import "node_modules/package/file.css
breaks with relative path font url
#15824
Unanswered
nunocasteleira
asked this question in
Help
Replies: 1 comment 7 replies
-
You can try changing the path to its real location in src: … url("../../node_modules/path/to/package/fonts/condensed-pro-medium.woff2") format("woff2"), … |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an application that I'm trying to migrate to v4.
I previously had
that the CLI converted to
On this file
styles-full.css
, I somewhere haveAnd when I render the Next.js app, I get
Can I fix this on my side? How can I point this "inline" import to the correct relative path for the node_module?
EDIT: Reproduction repository https://github.com/nunocasteleira/node-modules-font
Beta Was this translation helpful? Give feedback.
All reactions