You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
const purgecss = require("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],
|
|
};
|