-
Notifications
You must be signed in to change notification settings - Fork 12
/
postcss.config.js
57 lines (54 loc) · 1.15 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
57
const cssnano = require("cssnano");
console.log("=== POST CSS ===");
const purgecss = require("@fullhuman/postcss-purgecss")({
content: ["./app/**/*.html", "./app/assets/javascripts/*.js"],
safelist: [
"line-under",
"flip",
"phone",
"bottom-2",
"bg-red",
"list-entry-remove",
"shim",
"content-fixed",
"text-gray-grey1",
"border-gray-grey2",
"pl-doubleGutter",
"px-doubleGutter",
"pt-gutterHalf",
"mb-12",
"clear-both",
"w-auto",
"text-right",
"template-list-selected-counter",
"w-2/3",
"mb-8",
"focus:outline-none",
"w-3/6",
"pr-gutter",
"mt-0",
"max-w-xl",
"bg-emptyBird",
"bg-emptyBirdHole",
"bg-emptyFlower",
"bg-emptyTruck",
"bg-emptyBirdCurious",
"sm:bg-emptyBird",
"sm:bg-emptyBirdHole",
"sm:bg-emptyFlower",
"sm:bg-emptyTruck",
"sm:bg-emptyBirdCurious",
],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
});
module.exports = {
plugins: [
require("postcss-import"),
require("tailwindcss"),
cssnano({
preset: "default",
}),
require("autoprefixer"),
purgecss,
],
};