diff --git a/config/postcss.config.js b/config/postcss.config.js index b232c60..74032a1 100644 --- a/config/postcss.config.js +++ b/config/postcss.config.js @@ -3,52 +3,5 @@ const purgecss = require('@fullhuman/postcss-purgecss'); const whitelister = require('purgecss-whitelister'); module.exports = { - plugins: [ - autoprefixer(), - purgecss({ - content: [ './hugo_stats.json' ], - extractors: [ - { - extractor: (content) => { - const els = JSON.parse(content).htmlElements; - return els.tags.concat(els.classes, els.ids); - }, - extensions: ['json'], - }, - ], - dynamicAttributes: [ - 'aria-expanded', - 'data-bs-popper', - 'data-bs-target', - 'data-bs-theme', - 'data-dark-mode', - 'data-global-alert', - 'data-pane', // tabs.js - 'data-popper-placement', - 'data-sizes', - 'data-toggle-tab', // tabs.js - 'id', - 'size', - 'type', - ], - safelist: [ - 'active', - 'btn-clipboard', // clipboards.js - 'clipboard', // clipboards.js - 'disabled', - 'hidden', - 'modal-backdrop', // search-modal.js - 'selected', // search-modal.js - 'show', - 'img-fluid', - 'blur-up', - 'lazyloaded', - ...whitelister([ - './assets/scss/**/*.css', - './assets/scss/**/*.scss', - './node_modules/katex/dist/katex.css', - ]), - ], - }), - ], + plugins: [ autoprefixer() ] }