-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.postcssrc.js
More file actions
41 lines (39 loc) · 1019 Bytes
/
Copy path.postcssrc.js
File metadata and controls
41 lines (39 loc) · 1019 Bytes
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
// https://github.com/michael-ciniawsky/postcss-load-config
function getDirectProps(name) {
return ['left', 'top', 'right', 'bottom'].map(val => `${name}-${val}`);
}
module.exports = {
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {},
// "postcss-pxtorem": {
// rootValue: 200,
// propList: [
// 'width',
// 'height',
// 'margin',
// ...getDirectProps('margin'),
// 'padding',
// ...getDirectProps('padding'),
// 'font-size',
// 'line-height',
// 'top',
// 'right',
// 'left',
// 'bottom',
// 'border-radius',
// 'max-height',
// 'min-height',
// 'max-width',
// 'min-width',
// 'border-width',
// 'transform',
// 'background-position',
// '-webkit-transform',
// 'background-size',
// ],
// },
}
};