Important
Only for Tailwind 3 and DaisyUI 4.
For DaisyUI 5, simply follow the official documentation.
The goal is to eliminate Node.js (including jsbundling and cssbundling) as a dependency when using tailwindcss-rails.
The approach involves downloading and bundling DaisyUI once, allowing Tailwind CLI to handle the rest of the compilation, avoiding the need for Node.js tools, as suggested in this issue.
Another reference.
The following script will:
- Install DaisyUI via npm.
- Bundle it under
./lib/daisyui/daisyui-VERSION.js
. - Clean up the Node.js files and folders afterward, as they will no longer be needed.
You're right, that was for Tailwind 3 and DaisyUI 4. I'll precise it. Thanks
DaisyUI 5 has the documentation to use a bundled file: https://daisyui.com/docs/install/rails