-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
postcss.config.js
35 lines (35 loc) · 1.04 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
module.exports = {
plugins: [
require("postcss-easy-import"),
require("postcss-discard-comments")({removeAll: true}),
require("tailwindcss/nesting"),
require("tailwindcss"),
require("autoprefixer"),
require("postcss-merge-rules"),
require("postcss-replace")({
pattern: /(--tw|\*, ::before, ::after)/g,
data: {
'--tw': '--fj', // Prefixing
'*, ::before, ::after': ':root' // So variables does not pollute every element
}
}),
// require('@fullhuman/postcss-purgecss')({
// // Content files referencing CSS classes
// content: [
// "./_site/**/*.html",
// "./_site/**/*.js"
// ],
//
// // CSS files to be purged in-place
// css: ["./_site/**/*.css"],
//
// // Preserve tailwind responsive classes
// // defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
// defaultExtractor: (content) => content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [],
//
// safelist: {
// greedy: [],
// },
// })
],
};