This repository was archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Images not working with url() #128
Comments
Hey! Happy to help but you gotta give me a reproduction repository, it's definitely not "n/a" in this case :) |
This is caused by referencing an asset using a relative path. Using an absolute path to your background images should fix it, like this:
This remains an issue for those of us that need to use relative pathing. See #50 |
Fixed in v0.1.7 🥳 |
Dear @adamwathan, I love you. Kind regards, |
Haha thank @thecrypticace for this one, hero of the day 🙌🏻 |
This works great. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of @tailwindcss/jit are you using?
0.1.5
What version of Node.js are you using?
12.21.0
What browser are you using?
Firefox Nightly
What operating system are you using?
macOS
Reproduction repository
n/a
The following CSS works fine when using Tailwind without JIT.
As soon as I switch to Tailwind JIT by modifying
postcss.config.js
from"tailwindcss"
to"@tailwindcss/jit"
:I get the following error:
FYI This is a Rails 6.1 + Webpacker 6.beta project.
The text was updated successfully, but these errors were encountered: