DEV Community

Finding the Right Purgecss Extractor

Drew Town on May 12, 2019

When I was writing the tutorial on Setting up Tailwind with Purgecss I was running into an issue where my Vue.js computed styles were getting purge...
Collapse
 
prajngen profile image
prajngen

How about when i have a library that adds their own classes.

Eg. (Slick Slider or any other carousel Library)

If purgeCSS has plugins for these libraries, that'll be sweet!

Collapse
 
drewtownchi profile image
Drew Town

The extractor is only going to work if you are adding the markup into your files and the library isn't generating the code/classes and inserting them into the DOM.

Likely with a library you need to use Purgecss's Whitelisting and hope the library you are using has a sane CSS naming convention.