-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpostcss.config.js
118 lines (118 loc) · 3.13 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
module.exports = ({ file, options, env }) => ({
/**
* @Doc https://github.com/postcss/postcss-scss#readme
*/
parser: 'postcss-scss',
plugins: {
/**
* @Doc https://github.com/postcss/postcss-safe-parser#readme
*/
'postcss-safe-parser': {},
/**
* @Doc https://github.com/postcss/postcss-custom-selectors#readme
*/
'postcss-custom-selectors': {},
/**
* @Doc https://github.com/postcss/postcss-custom-media#readme
*/
'postcss-custom-media': {},
/**
* @Doc https://github.com/jonathantneal/postcss-pseudo-class-any-link#readme
*/
'postcss-pseudo-class-any-link': {},
/**
* @Doc https://github.com/postcss/postcss-custom-properties#readme
*/
'postcss-custom-properties': {
warnings: false,
},
/**
* @Doc https://github.com/postcss/postcss-calc#readme
*/
'postcss-calc': {},
/**
* @Doc https://github.com/jonathantneal/postcss-focus-within#readme
*/
'postcss-focus-within': {},
/**
* @Doc https://github.com/ai/webp-in-css#readme
*/
'webp-in-css/plugin': {},
/**
* @Doc https://github.com/jonathantneal/postcss-image-set-function#readme
*/
'postcss-image-set-function': {},
/**
* @Doc https://github.com/postcss/postcss-selector-not#readme
*/
'postcss-selector-not': {},
/**
* @Doc https://github.com/arccoza/postcss-aspect-ratio#readme
*
* @Usage .aspect-box { aspect-ratio: '16:9'; }
*/
'postcss-aspect-ratio': {},
/**
* @Doc https://github.com/postcss/postcss-easings#readme
*
* @library https://easings.net/
*
* @custom http://cubic-bezier.com/
*/
'postcss-easings': {},
/**
* @Doc https://github.com/retyui/postcss-animations#readme
*/
'postcss-animations': {
data: [
require('postcss-animation.css-data'),
require('postcss-magic.css-data'),
require('postcss-mimic.css-data'),
require('postcss-tuesday.css-data'),
],
checkDuplications: false,
disableCheckCssVariables: true,
},
/**
* @Doc https://github.com/borodean/postcss-assets#readme
*/
'postcss-assets': {
basePath: './',
loadPaths: options.dist ? [options.dist.cssimg] : [],
},
/**
* @Doc https://github.com/postcss/autoprefixer#readme
*/
autoprefixer: {
cascade: false,
grid: 'no-autoplace',
},
/**
* @Doc https://github.com/jonathantneal/postcss-svg#readme
*/
'postcss-svg': {},
/**
* @Doc https://github.com/jonathantneal/postcss-short-size#readme
*/
'postcss-short-size': {},
/**
* @Doc https://github.com/luisrudge/postcss-flexbugs-fixes#readme
*
* @Flexbugs https://github.com/philipwalton/flexbugs#readme
*/
'postcss-flexbugs-fixes': {},
/**
* @Doc https://cssnano.co/optimisations/
*/
cssnano:
env !== 'production'
? false
: {
discardComments: { removeAll: true },
zindex: false,
discardUnused: false,
reduceIdents: false,
mergeIdents: false,
},
},
});