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.