Skip to content

Instantly share code, notes, and snippets.

View Dozorengel's full-sized avatar
🏠
Working from home

Aleksandr Cherepanov Dozorengel

🏠
Working from home
View GitHub Profile
@leon
leon / README.md
Last active April 21, 2023 07:04
NX tailwind 3 setup

Tailwind 3 has jit mode and purge built in.

So we only need to specify a list of globs to the content prop of the tailwind.config.js

@nrwl/workspace contains a function called createGlobPatternsForDependencies which can generate an array of globs that you can pass to tailwind.