-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpostcss.config.js
56 lines (54 loc) · 1.18 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const autoprefixer = require("autoprefixer");
const purgeImport = require("@fullhuman/postcss-purgecss");
const purgeCSSPlugin = purgeImport.purgeCSSPlugin || purgeImport.default || purgeImport;
const purgecss = purgeCSSPlugin({
content: ["./layouts/**/*.html", "./public/**/index.html", "./content/**/*.md"],
safelist: [
"arrow",
"autocomplete-suggestion",
"autocomplete-suggestions",
"bg-light",
"bg-white",
"border-0",
"btn",
"btn-feedback",
"btn-outline-dark",
"btn-outline-primary",
"btn-sm",
"chroma",
"col",
"col-12",
"col-6",
"container",
"container-fluid",
"cookie-policy-description",
"d-block",
"d-flex",
"d-inline-block",
"footer",
"form-check",
"gh",
"highlight",
"language-txt",
"main",
"mt-md-0",
"mt-sm-0",
"navbar",
"onetrust*",
"opacity-75",
"ot-*",
"row",
"row-cols-xl-7",
"sr-only",
"table",
"td",
"text-dark",
"text-light",
"text-white",
"thead",
"w-50",
"w-100",
],
blocklist: ["btn-group", "btn-group-vertical", "carousel", "carousel-item"],
});
module.exports = { plugins: [autoprefixer, purgecss] };