forked from 801labs/801labs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
40 lines (40 loc) · 1.37 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
module.exports = {
plugins: {
'postcss-import': {},
tailwindcss: {},
'postcss-clamp': {},
'postcss-flexbugs-fixes': {},
'postcss-preset-env': {
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
features: {
'custom-properties': false,
},
},
autoprefixer: {},
...(process.env.NODE_ENV === 'production'
?
{
'@fullhuman/postcss-purgecss': {
content: [
'./content/**/*.md',
'./components/**/*.js',
'./components/**/*.jsx',
'./components/**/*.tsx',
'./layouts/**/*.js',
'./layouts/**/*.jsx',
'./layouts/**/*.tsx',
'./pages/**/*.js',
'./pages/**/*.jsx',
'./pages/**/*.md',
'./pages/**/*.mdx',
'./pages/**/*.tsx',
],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
}
} : {}
),
},
}