演示项目

This commit is contained in:
2023-12-12 17:31:48 +08:00
parent 9e3f0c440a
commit 9ae4a83573
121 changed files with 20562 additions and 288 deletions

View File

@@ -0,0 +1,14 @@
module.exports = {
plugins: {
autoprefixer: {},
"postcss-px-to-viewport": {
viewportWidth: 1920,//视窗的宽度,对应的是我们设计稿的宽度
viewportHeight: 1080,//视窗的高度,对应的是我们设计稿的高度
unitPrecision: 5,//制定px转换为视窗单位的小数位数很多时候无法整除
viewportUnit: 'vw',//指定需要转换成的视窗单位建议使用vw
selectorBlackList: ['ignore', 'tab-bar', 'tab-bar-item'],//指定不需要转换的类,
minPixelValue: 1,//小于或等于1px不转换为视窗单位
mediaQuery: false//允许在媒体查询中转换为px
}
}
}