tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
83.11k stars 4.21k forks source link

Issue with snowpack and tailwindcss JIT mode #4774

Closed titieo closed 3 years ago

titieo commented 3 years ago

What version of Tailwind CSS are you using?

v2.2.2

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

snowpack v3.5.9, @snowpack/plugin-postcss v1.4.1, postcss v8.3.5

What version of Node.js are you using?

v14.17.0

What browser are you using?

Brave

What operating system are you using?

Windows 10 21H1

Reproduction repository

https://github.com/loctran016/eleventy-kickstart-blog/tree/snowpack

Describe your issue

Any helps? Even though I've set like @bradlc said in #3950, it doesn't work, no errors in the console, but I still can't use tailwindcss. I've run cross-env NODE_ENV=development TAILWIND_DISABLE_TOUCH=true yarn clean && npx @11ty/eleventy && snowpack dev:

image

bradlc commented 3 years ago

Hey @loctran016. Here's how to fix your issue:

titieo commented 3 years ago

Thanks for helping a lot