generated from Hugolify/hugolify-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
35 lines (35 loc) · 920 Bytes
/
postcss.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* eslint-disable no-undef */
module.exports = {
plugins: {
autoprefixer: {},
cssnano: {
preset: 'default'
},
'@fullhuman/postcss-purgecss': {
mode: 'all',
content: ['./hugo_stats.json'],
safelist: {
standard: [
'show',
'fade',
/-backdrop$/,
/^is-/,
/^has-/,
/^js-/
],
deep: [
/^tobii/
],
greedy: [
/^aria-current$/,
/^role$/
]
},
defaultExtractor: (content) => {
let els = JSON.parse(content).htmlElements;
els = els.tags.concat(els.classes);
return els;
}
}
}
};