-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostcss.config.js
37 lines (37 loc) · 898 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
plugins:
process.env.NODE_ENV === 'production'
? [
'postcss-flexbugs-fixes',
[
'postcss-preset-env',
{
stage: 3,
features: {
clamp: true,
'font-format-keywords': true,
'logical-properties-and-values': true,
'place-properties': true,
'system-ui-font-family': true,
},
autoprefixer: { flexbox: false },
},
],
[
'cssnano',
{
preset: [
'default',
{ discardComments: { removeAll: true } },
],
},
],
]
: [
'postcss-flexbugs-fixes',
[
'autoprefixer',
{ flexbox: false },
],
],
};