How add PurgeCss with TailwindCss?
https://next.tailwindcss.com/docs/controlling-file-size
postcss.config.js
const purgecss = require('@fullhuman/postcss-purgecss')({
content: [
'./**/**/**/*.erb',
'./**/**/**/**/*.erb',
],
extractors: [
{
extractor: class {
static extract(content) {
return content.match(/[A-Za-z0-9-_:/]+/g) || [];
}
},
extensions: ['html']
}
]
})
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
require('postcss-import'),
require('postcss-flexbugs-fixes'),
require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009'
},
stage: 3
}),
]
}
How to do right? Thanks