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 19:51:23 +08:00
|
|
|
"autoprefixer": {},
|
|
|
|
'postcss-pxtorem': {
|
2021-03-03 10:30:06 +08:00
|
|
|
rootValue: 16,
|
2021-01-21 19:51:23 +08:00
|
|
|
propList: ['font-size'] // 只转化font-size
|
|
|
|
}
|
2020-10-12 10:11:24 +08:00
|
|
|
}
|
|
|
|
}
|