Files
recom-gorse/web_home/postcss.config.js
2023-12-12 17:31:48 +08:00

15 lines
747 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}
}
}