Files
hinode/config/postcss.config.js
2022-02-27 08:15:13 +01:00

42 lines
1.1 KiB
JavaScript

const autoprefixer = require('autoprefixer');
const purgecss = require('@fullhuman/postcss-purgecss');
const whitelister = require('purgecss-whitelister');
module.exports = {
plugins: [
autoprefixer(),
purgecss({
content: [
'./layouts/**/*.html',
'./content/**/*.md',
],
safelist: {
standard: [
/lazyloaded/,
/table/,
/thead/,
/tbody/,
/tr/,
/th/,
/td/,
/h5/,
/alert-link/,
/container-xxl/,
/container-fluid/,
/^bg-opacity-\d+/,
/svg.*/,
/fa.*/
],
...whitelister([
'./assets/scss/components/_blockquote.scss',
'./assets/scss/components/_card.scss',
'./assets/scss/components/_navbar.scss',
'./assets/scss/components/_img.scss',
'./assets/scss/components/_search.scss',
'./node_modules/bootstrap/scss/_dropdown.scss',
'./node_modules/bootstrap/scss/_utilities.scss',
]),
},
}),
],
}