Based on my article
Tired of running npm install / yarn
and seeing tons of files installed in your node_modules just to process your Tailwind CSS file? I got you, have a look at this minimal approach.
Make sure all dependencies have been installed before moving on:
Clone this repository and run
npm install -g postcss-cli autoprefixer cssnano
to install dependencies globally
Task Name | Description |
---|---|
npm run tailwind |
Basic usage: process your CSS (development) |
npm run build |
Process your CSS + Autoprefixer (development) |
npm run production |
Process your CSS + Autoprefixer + Minify CSS (production) |
Copyright 2020 Tomasz Bujnowicz under the MIT license.