forked from berty/www.berty.tech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostcss.config.js
21 lines (20 loc) · 990 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
const purgeCssWhitelist = {
whitelist: ['value-true','value-false','value-partially', 'highlight', 'anchor-heading', 'anchor-link', 'img', 'show', 'blockquote', 'pre', 'ol', 'h6', 'table', 'tbody', 'thead', 'tr', 'th', 'td', 'table-bordered', 'show', 'collapsing', 'section-id', 'block-id', 'block-id-avatar', 'block-id-name', 'block-id-qrcode', 'block-error', 'display-none', 'tag', 'blue', 'pink', 'yellow', 'black', 'bg-about', 'bg-download', 'bg-contact', 'toc', 'toc-list', 'toc-link', 'is-collapsible', 'is-collapsed', 'is-position-fixed', 'is-active-link', 'page-fake', 'bg-particles'],
whitelistPatterns: [/^slick/],
}
module.exports = {
purgeCssWhitelist,
plugins: [
require('postcss-import')({
path: ["assets/css"],
}),
require('@fullhuman/postcss-purgecss')({
content: ['layouts/**/*.html', 'content/**/*.md'],
fontface: true,
...purgeCssWhitelist
}),
require('autoprefixer')({
grid: true,
}),
]
}