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': {
|
|
|
|
rootValue: 24,
|
|
|
|
propList: ['font-size'] // 只转化font-size
|
|
|
|
}
|
2020-10-12 10:11:24 +08:00
|
|
|
}
|
|
|
|
}
|