Could TAILWIND_CLI_PATH
point to a binary?
#65
jefftriplett
started this conversation in
General
Replies: 1 comment 2 replies
-
The reasoning of using But I can see the issue you are facing right now. We are not using dev containers at all, so we haven't encountered it yet. Two quick ideas:
This would allow you to mount a common CLI version into your dev containers, or base them on a common base image which already includes the CLI version. What do you think? |
Beta Was this translation helpful? Give feedback.
2 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.
-
Wonderful tool btw.
This is a one-part question and one-part help for anyone else who might be trying to wrap their head around making this work in Docker so that it doesn't try to re-download the tailwindcss binary every time
python manage.py tailwind <cmd>
is run.I'm using
django-tailwind-cli
in containers, and I found myself struggling/jumping through a few hoops to get thetailwindcss
binary to work effectively.I mistakenly had
TAILWIND_CLI_PATH
set to/usr/bin/tailwindcss
which created/usr/bin/tailwindcss/tailwindcss-linux-x64-3.3.5
.What I'm using now is:
Would it make sense to allow users to set where the Tailwind CSS CLI binary is stored?
Beta Was this translation helpful? Give feedback.
All reactions