DEV Community

Discussion on: Setup TailwindCSS in Angular the easy way

Collapse
 
peyman98 profile image
Peyman

Thanks, what about purging unused classes? is it done automatically?

Collapse
 
devpato profile image
Pato

I have updated the post with some purging instructions

Collapse
 
chandlerbaskins profile image
Chandler Baskins • Edited

I don't believe its done for you but in your tailwind config file this may work...

purge: {
      content: [
        './src/**/*.{html,ts}',
      ]
    },
Enter fullscreen mode Exit fullscreen mode
Collapse
 
devpato profile image
Pato • Edited

I updated the tutorial with a purging section :) let me know if you think this sucks or it's good lol

Collapse
 
devpato profile image
Pato

Did you see the updated section?

Thread Thread
 
chandlerbaskins profile image
Chandler Baskins

Nice! Thank you for the content ❤️

Thread Thread
 
devpato profile image
Pato

You are welcome sir!