-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.js
More file actions
27 lines (27 loc) · 833 Bytes
/
postcss.config.js
File metadata and controls
27 lines (27 loc) · 833 Bytes
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
module.exports = {
plugins: {
'@fullhuman/postcss-purgecss': {
content: ["./hugo_stats.json"],
defaultExtractor: (content) => {
const els = JSON.parse(content).htmlElements;
return [...(els.tags || []), ...(els.classes || []), ...(els.ids || [])];
},
variables: true,
safelist: {
standard: [
'disabled',
'back-to-top',
'data-theme',
],
deep: [/^content/, /^chroma/],
greedy: [],
keyframes: [],
variables: [/bulma-primary-100-l/, /bulma-primary-invert/]
}
},
autoprefixer: {},
cssnano: {
preset: 'default'
},
}
};