portails/config/postcss.config.js

30 lines
649 B
JavaScript
Raw Normal View History

2020-12-02 13:49:08 +01:00
const autoprefixer = require('autoprefixer');
const purgecss = require('@fullhuman/postcss-purgecss');
2020-04-15 15:48:16 +02:00
const whitelister = require('purgecss-whitelister');
module.exports = {
plugins: [
autoprefixer(),
purgecss({
content: [
'./layouts/**/*.html',
2021-03-05 14:27:36 +01:00
'./content/**/*.md',
2020-04-15 15:48:16 +02:00
],
2020-11-04 08:26:58 +01:00
safelist: [
2020-04-15 15:48:16 +02:00
'lazyloaded',
2021-03-05 14:27:36 +01:00
'table',
'thead',
'tbody',
'tr',
'th',
'td',
2020-04-15 15:48:16 +02:00
...whitelister([
2020-04-15 16:17:16 +02:00
'./assets/scss/components/_code.scss',
2020-11-04 08:26:58 +01:00
'./assets/scss/components/_search.scss',
'./assets/scss/common/_dark.scss',
2020-04-15 15:48:16 +02:00
]),
],
}),
],
}