Remove Unused CSS With PurgeCSS
Remove Unused CSS With PurgeCSS
later.
If I disable PurgeCSS, you can see that the tailwind css is 485
KB:
While if I activate it, it goes down to 16 KB:
module.exports = { plugins };
Basically, all you need is to tell where to look for the matching
classes using the content property.
following content:
class TailwindExtractor {
static extract(content) {
return content.match(/[A-Za-z0-9-_:\/]+/g) || [];
}
}
module.exports = {
plugins
};
code).