tailwind-csssinatra

Add TailwindCSS to SinatraRB


What is the easiest way nowadays to add TailwindCSS 3.4 to a Sinatra 4 app? Is there a way to avoid npm and all the JS complexity that comes with that?


Solution

  • If you want to avoid installing Tailwind CSS via the Node.js ecosystem, i.e. npm, you can download and use the standalone binary which is described as a:

    […] standalone CLI build that gives you the full power of Tailwind CLI in a self-contained executable — no Node.js or npm required.