This commit is contained in:
15
postcss.config.js
Normal file
15
postcss.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// postcss.config.js
|
||||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
"postcss-rem-to-responsive-pixel": {
|
||||
// 32 意味着 1rem = 32rpx
|
||||
rootValue: 32,
|
||||
// 默认所有属性都转化
|
||||
propList: ["*"],
|
||||
// 转化的单位,可以变成 px / rpx
|
||||
transformUnit: "rpx",
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user