完整的教务系统前端项目 - 包含所有修复和9月份数据
This commit is contained in:
14
postcss.config.js
Normal file
14
postcss.config.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export default {
|
||||
plugins: {
|
||||
"postcss-px-to-viewport": {
|
||||
viewportWidth: 1440, // 设计稿宽度
|
||||
viewportHeight: 1133, // 设计稿高度
|
||||
unitPrecision: 5, // 转换后的精度,即小数点位数
|
||||
viewportUnit: "vw", // 希望使用的视口单位
|
||||
selectorBlackList: ["ignore"], // 不需要转换的类名
|
||||
minPixelValue: 1, // 小于或等于1px则不进行转换
|
||||
mediaQuery: true, // 是否在媒体查询中也进行转换
|
||||
exclude: /node_modules/i, // 排除node_modules目录
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user