Add purgecss to css processing workflow
parent
60bed163e3
commit
5da06e3a87
@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue