This schematic will add Tailwind CSS to your Angular application.
ng add @ngneat/tailwind
In Nx, you can either use nx add
or ng add
(same as above) to use the schematics.
nx add @ngneat/tailwind
This schematic only works with Nx Workspace powered by AngularCLI at the moment. If you rely on Nx CLI with workspace.json
, this schematic won't work correctly. This is due to some discrepancies between NxCLI
helpers and AngularCLI
helpers which are quite hard to combine. (Discussed here)
@ngneat/tailwind
uses built-in purge
functionality by tailwindcss
(under the hood, it is postcss-purgecss). By default, @ngneat/tailwind
sets the content
to any HTML and any TS files in the project.
This behavior can be modified as the consumers see fit.
Thanks goes to these wonderful people (emoji key):
Chau Tran π» π π€ |
Netanel Basal π» π€ |
Santosh Yadav π€ π§βπ« |
This project follows the all-contributors specification. Contributions of any kind welcome!