An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
December 17, 2021 07:30 pm GMT
Original Link: https://dev.to/kachidk/tailwind-standalone-cli-use-tailwind-css-without-nodejs-2bfn
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
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
Original Link: https://dev.to/kachidk/tailwind-standalone-cli-use-tailwind-css-without-nodejs-2bfn
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To