non-invasive-checkup/postcss.config.cjs
2026-04-22 22:13:53 +08:00

18 lines
438 B
JavaScript
Raw Permalink 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.

/**
* 设计稿基准宽度 1080px → 转为 vw适配真机 / 模拟器。
* exclude node_modules避免把 Vant 等已按自身规范编译的样式再转一遍。
*/
module.exports = {
plugins: {
'postcss-px-to-viewport': {
viewportWidth: 1080,
unitPrecision: 5,
propList: ['*'],
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
exclude: [/node_modules/]
}
}
};