-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k

Description
What version of Tailwind CSS are you using?
Tested from 3.0.0 to 3.0.24
What build tool (or framework if it abstracts the build tool) are you using?
TailwindCSS CLI from 3.0.0 to 3.0.24
What version of Node.js are you using?
v12.13.0
What browser are you using?
Chrome
What operating system are you using?
Linux (server & compilation side)
Reproduction repository:
Assets URL (pastebin urls)
- My generated
safelist.txt
(used your regex to extract classes from my website code) tailwind.config.js
tailwind.css
postcss.config.js
Command i use to compile from build_1 folder (see below folder structure):
/path/from/root/tailwind-v3/tailwindcss -i tailwind.css -o tailwind.min.css --postcss
My folder structure is like so:
tailwind-v3
├── tailwindcss # tailwindcss is the standalone linux bin of 3.0.24 you released
├── tmp
│ ├── build
│ ├── ── build_1 # the folder where i init the CLI command
│ ├── ── ── tailwind.css # it's my input tailwind.css file
│ ├── ── ── tailwind.config.js
│ ├── ── ── postcss.config.js
│ ├── ── ── safelist.txt # the file which contains all the potential classes i want to generate
└── ...
Describe your issue
My safelist.txt
is used in 'content': ['./safelist.txt'],
in my tailwind.config.js
Also tried to add all words present in my safelist.txt
directly into safelist
as your doc says in my tailwind.config.js
but it never generates my classes.
For example, the .flex
class is not present in my final generated tailwind.min.css
file.
Output i get from CLI is: Done in 2328ms.
It does generate a tailwind.min.css
but only with the content in my tailwind.css
file.
So it seems to find & use my safelist.txt
in content
since i have no "Warn, no content defined" message but doesn't generate classes.