github.io/postcss.config.js
Sivert V. Sæther d21051adde Anotha lil dump
Think I'm finally finished fiddling with the devops stuff and ready to
finally focus on the content! 😁
2022-04-08 00:04:12 +00:00

13 lines
349 B
JavaScript

const purgecss = require('@fullhuman/postcss-purgecss')({
content: [ './hugo_stats.json' ],
defaultExtractor: (content) => {
let els = JSON.parse(content).htmlElements
return els.tags.concat(els.classes, els.ids)
}
})
module.exports = {
plugins: [
purgecss,
// ...(process.env.NODE_ENV === 'production' ? [ ] : [])
]
}