Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js

Tailwind just released a standalone CLI in self-contained executable, no Node.js or npm required.

You get all the power of the standard npm-distributed CLI in a convenient, portable package — no dependencies required.

Get started

Downlo…


This content originally appeared on DEV Community and was authored by Victor Nwanguma

Tailwind just released a standalone CLI in self-contained executable, no Node.js or npm required.

You get all the power of the standard npm-distributed CLI in a convenient, portable package — no dependencies required.

Get started

Download the executable for your platform from the latest release.

Copy it to the root directory of your project.

Rename the executable "tailwindcss" .

Now you can use it just like the npm-distributed CLI tool:

# Create a tailwind.config.js file
./tailwindcss init

# Start a watcher
./tailwindcss -i input.css -o output.css --watch

# Compile and minify your CSS for production
./tailwindcss -i input.css -o output.css --minify

It comes bundled with the latest versions of all of tailwind's first-party plugins, so if you want to use them in your project, just require them in your tailwind.config.js file like you would in a Node-based project:

module.exports = {
  // ...
  plugins: [
    require('@tailwindcss/forms'),
    require('@tailwindcss/typography'),
  ]
}

Refrences

Standalone CLI: Use Tailwind CSS without Node.js - Adam Wathan


This content originally appeared on DEV Community and was authored by Victor Nwanguma


Print Share Comment Cite Upload Translate Updates
APA

Victor Nwanguma | Sciencx (2021-12-17T19:30:26+00:00) Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js. Retrieved from https://www.scien.cx/2021/12/17/tailwind-css-standalone-cli-use-tailwind-css-without-node-js/

MLA
" » Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js." Victor Nwanguma | Sciencx - Friday December 17, 2021, https://www.scien.cx/2021/12/17/tailwind-css-standalone-cli-use-tailwind-css-without-node-js/
HARVARD
Victor Nwanguma | Sciencx Friday December 17, 2021 » Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js., viewed ,<https://www.scien.cx/2021/12/17/tailwind-css-standalone-cli-use-tailwind-css-without-node-js/>
VANCOUVER
Victor Nwanguma | Sciencx - » Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/17/tailwind-css-standalone-cli-use-tailwind-css-without-node-js/
CHICAGO
" » Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js." Victor Nwanguma | Sciencx - Accessed . https://www.scien.cx/2021/12/17/tailwind-css-standalone-cli-use-tailwind-css-without-node-js/
IEEE
" » Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js." Victor Nwanguma | Sciencx [Online]. Available: https://www.scien.cx/2021/12/17/tailwind-css-standalone-cli-use-tailwind-css-without-node-js/. [Accessed: ]
rf:citation
» Tailwind CSS Standalone CLI: Use Tailwind CSS without Node.js | Victor Nwanguma | Sciencx | https://www.scien.cx/2021/12/17/tailwind-css-standalone-cli-use-tailwind-css-without-node-js/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.