This commit is contained in:
clay
2021-12-31 23:12:37 +08:00
parent 3f23c616ea
commit 8232008a5c
29 changed files with 1779 additions and 419 deletions

13
.postcssrc.js Normal file
View File

@@ -0,0 +1,13 @@
module.exports = {
plugins: {
autoprefixer: {},
"@njleonzhang/postcss-px-to-rem": {
unitToConvert: "px",
widthOfDesignLayout: 1920, // 设计稿的宽度
unitPrecision: 3, // 十进制的单位.
selectorBlackList: [".ignore", ".hairlines"], // 过滤那些不用转换的class
minPixelValue: 1, // 设置要替换的最小像素值.
mediaQuery: false, // 允许在媒体查询中转换px
},
},
};