Compile Tailwind to CSS with gulp

Share this video with your friends

Send Tweet

In this lesson, we learn how to generate CSS utility classes from Tailwind's JavaScript config file. We set up a new project from scratch, install tailwind, generate a config file and build a simple gulp task that runs that file through PostCSS to generate the desired CSS output.

file through PostCSS via gulp.

Jorge Cortes
Jorge Cortes
~ 7 years ago

The package is called tailwindcss not tailwind :)

Massinissa Amalou
Massinissa Amalou
~ 7 years ago

You need to add autoprefixer for lastest version of tailwind.

yarn add autoprefixer --dev

Robert
Robert
~ 7 years ago

If you're using npm >= 5, you can always run binaries like so:

npx tailwind init