-
Notifications
You must be signed in to change notification settings - Fork 63
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
Detailed instructions for nodejs tailwindcss #88
Comments
Partially answering my own question. Some good hints were discovered here: https://github.com/phoenixframework/tailwind/blob/main/lib/tailwind.ex#L34 Side note: It is a shame that github's readme and hexdocs have different content. Nevertheless after installing tailwindcss module globally (
The missing piece of the solution was found here: Apparently node is not looking in global location on after setting Question to phoenix experts: is it possible to incorporate this trick cc @dch -> a working solution that does not require hackery and elf patching :P |
@ngortheone this is what I used, with npm-node20 package:
for aarch64 that would be probably arm64 at the end. Does that help? |
I apologize upfront for stupid question. I come from systems & backend engineering world, the world of frontend is new and frightening to me. I am trying to get started with Phoenix on FreeBSD.
I am aware of #49 , however this option has big drawback: there are are no official tailwind cli packages for FreeBSD and current package is outdated, maintained by a single person and relies on a complicated series of dirty hacks to get it working. (All thanks to convoluted build process of the tailwindcss CLI)
As I gather from the readme it is possible to use tailwindcss with nodejs:
However official tailwind documentation gives very generic guidance how to install it. Following those steps verbatim does not produce working result.
Can you please provide more detailed and tailored to phoenix steps?
I do have
node
and tailwind installed.npx tailwindcss
works. As I understandtailwind
mix dependency should not be needed, or at least should be reconfigured. I want to re-use auto-generatedtailwind.config.js
.This snippet from
config/config.ex
hints on what input/output paths should be but I would appreciate official step-by-step getting started instruction for a web monkey like me.P.S. It seems that this bit has to be adjusted to run
npx tailwind
instead...The text was updated successfully, but these errors were encountered: