-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.postcssrc.js
27 lines (26 loc) · 1012 Bytes
/
.postcssrc.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
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
"plugins": {
// to edit target browsers: use "browserlist" field in package.json
"autoprefixer": {
"browsers": [
'last 10 versions'
//'0.1%'
]
// "browsers": [
// 'iOS >= 7',
// 'Android >= 4.1'
// ]
},
"postcss-px2rem": {
baseDpr: 2, // base device pixel ratio (default: 2)
threeVersion: false, // whether to generate @1x, @2x and @3x version (default: false)
remVersion: true, // whether to generate rem version (default: true)
remUnit: 10, // rem unit value (default: 75)>0.1%,not ie<100,not edge<100,not firefox<100,not opera<100
remPrecision: 6 // rem precision (default: 6){browsers: ['last 2 versions']}
},
"cssnano": {
safe: true
}
}
}