19 lines
828 B
JavaScript
19 lines
828 B
JavaScript
module.exports = {
|
|
plugins: {
|
|
'postcss-px-to-viewport': {
|
|
viewportWidth: 1920, // 设计稿的视口宽度
|
|
viewportHeight: 1080, // 设计稿的视口宽度
|
|
viewportUnit: 'vw', // 希望使用的视口单位
|
|
fontViewportUnit: 'vw', // 字体使用的视口单位
|
|
unitPrecision: 5,
|
|
propList: ['*'],
|
|
selectorBlackList: ['.ignore'], // 需要忽略的CSS选择器
|
|
minPixelValue: 1, // 小于或等于`1px`不转换为视口单位
|
|
mediaQuery: false, // 允许在媒体查询中转换`px`
|
|
selectorBlackList: [':root', 'el-'], // 排除 Element Plus 的类名
|
|
// replace: true,
|
|
exclude: [/node_modules\/element-plus/], // 排除 Element Plus 的样式文件
|
|
},
|
|
},
|
|
}
|