red-devils/postcss.config.js

23 lines
432 B
JavaScript
Raw Normal View History

2024-06-18 10:56:57 +08:00
/*
* @LastEditors: John
* @Date: 2024-06-17 18:25:10
2024-06-19 18:35:06 +08:00
* @LastEditTime: 2024-06-19 16:14:06
2024-06-18 10:56:57 +08:00
* @Author: John
*/
export default {
plugins: {
autoprefixer: {},
"postcss-pxtorem": {
rootValue: 37.5,
propList: ["*"],
exclude: (e) => {
2024-06-19 18:35:06 +08:00
if (/.*-m\.css$/.test(e) || /.module\.css$/.test(e)) {
// console.log(e);
2024-06-18 10:56:57 +08:00
return false;
}
return true;
},
},
},
};