DEV Community

loading...

Discussion on: Dev.to clone with tailwind CSS

gillarohith profile image
Rohith Gilla Author

Wow thanks, will definitely check that out.

Thread Thread
jsn1nj4 profile image
JSn1nj4‍‍👨‍💻

Purgecss is amazing. But do make sure you have it set up correctly to check source files. That's how it determines what classes you're using.

Depending on what tools you build with, you may also need to whitelist some selectors. That should be covered in the Purgecss docs.

Thread Thread
gillarohith profile image
Rohith Gilla Author

Oh cool thanks for the heads up, will be ready for it.

Thread Thread
jsn1nj4 profile image
JSn1nj4‍‍👨‍💻

Oh, I need to add 1 more thing: I think Purgecss only runs when the environment is "production". This is to prevent issues in development if you change CSS classes in your markup without regenerating your CSS.

Some comments have been hidden by the post's author - find out more