Рет қаралды 5,793
This video demonstrates how to install Tailwind CSS in a brand new project as a PostCSS plugin - with no other frameworks. It's the latest version 2.2 as of recording this video. You will also understand how to enable JIT mode, watch your files during development and optimize & minimize your code for production.
Windows users, please change the "build" script to:
"build": "set TAILWIND_MODE=watch&postcss tailwind.css -o ./public/styles.css -w --verbose"
Thanks to Juan Carlos for pointing out the solution in comments.
Boilerplate on GitHub:
github.com/Thi...
--------
The video is sponsored by Showwcase. Join me there - www.showwcase....
--------
In case you are on Windows and face an error "NODE_ENV is not recognised...", you must install win-node-env. So just run:
npm install win-node-env
Subscribe and stay tuned for tips, tutorials and more.
Follow me on Twitter: / shrutibalasa
Follow Thirus on Twitter: / thirusofficial
Visit my website: www.shrutibala...