tailwindlabs/tailwindcss-jit

Gulp task not finishing

rfrerebe opened this issue · 2 comments

What version of @tailwindcss/jit are you using?

v0.1.18

What version of Node.js are you using?

v12.21.0

What build tool (or framework if it abstracts the build tool) are you using?

gulp

What browser are you using?

Chrome

What operating system are you using?

Windows with WSL2

Reproduction repository

https://github.com/rfrerebe/jit-repro

Hello,

Running npm run build (or gulp build) on repro will start a task that never finish
Changing the purge options in tailwind.config.css will have the expected behaviour (ie task ending).

Hey! Basically guaranteed you just aren't setting the environment variables you need to as outlined in the docs here:

image

Also ran into this when implementing with Laravel Mix.

Adam's notes (and the docs) describe the solution -- you likely just need to set TAILWIND_MODE=build in your command.