chore: Remove PostCSS processing

This commit is contained in:
Thomas A. Christensen II 2024-12-01 19:46:43 -07:00
parent e475ca560f
commit 12c55c504b
Signed by: millironx
GPG key ID: B7044A3432851F64

View file

@ -1,13 +0,0 @@
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);
},
});
if (process.env.HUGO_ENVIRONMENT === "production") {
module.exports = {
plugins: [purgecss],
};
}