2020-10-12 10:11:24 +08:00
|
|
|
// https://github.com/michael-ciniawsky/postcss-load-config
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
"plugins": {
|
|
|
|
"postcss-import": {},
|
|
|
|
"postcss-url": {},
|
|
|
|
// to edit target browsers: use "browserslist" field in package.json
|
2021-01-21 20:19:14 +08:00
|
|
|
"autoprefixer": {},
|
|
|
|
'postcss-pxtorem': {
|
2021-03-01 18:12:56 +08:00
|
|
|
rootValue: 16,
|
2021-01-21 20:19:14 +08:00
|
|
|
propList: ['font-size'] // 只转化font-size
|
|
|
|
}
|
2020-10-12 10:11:24 +08:00
|
|
|
}
|
|
|
|
}
|