Skip to content

Pointing to the tailwindcss executable #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TheNeikos opened this issue Nov 10, 2022 · 6 comments · Fixed by #226
Closed

Pointing to the tailwindcss executable #224

TheNeikos opened this issue Nov 10, 2022 · 6 comments · Fixed by #226
Labels
enhancement New feature or request

Comments

@TheNeikos
Copy link

I'm running NixOs and due to multiple reasons I cannot install platform-native gems. However, I can install the tailwindcss executable on its own. However, this gem does not try checking PATH if the included version does not exist.

I understand that this is probably for easier maintenance and is a good idea. However, could a configuration/escape hatch be added that would allow me to point it at the tailwindcss executable? The onus would be on me to make sure the versions match up etc...

This would make it possible to use on NixOS while still keeping the niceties of the gem.

@flavorjones
Copy link
Member

I've been waiting for someone with a specific use case to ask for this! Yes, we can absolutely figure something out.

What is the user experience you're expecting? Is it:

  • install the "ruby" platform gem (not any of the native platform gems)
  • have the shim check your $PATH for another tailwindcss executable and run that if it finds one

or something else entirely?

@flavorjones flavorjones added the enhancement New feature or request label Nov 10, 2022
@TheNeikos
Copy link
Author

TheNeikos commented Nov 12, 2022

Nope, that would directly solve the issue!

@flavorjones
Copy link
Member

🤔 OK, let me see what I can do.

@flavorjones
Copy link
Member

See PR #226

@flavorjones
Copy link
Member

See Release v2.0.26 / 2023-03-30 · rails/tailwindcss-rails which provides a way to use a locally-installed tailwindcss executable. (See README for details.)

@TheNeikos
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants