module.exports = {
    plugins: {
        // autoprefixer: {}, // 用来自动处理浏览器前缀的一个插件。 // VueCLI 内部已经配置了 autoprefixer 插件
        'postcss-pxtorem': {
            rootValue({ file }) {
                // TODO: rootValue
                return file.indexOf('vant') !== -1 ? 37.5 : 41.4 // vant 使用375, 其他使用设计图  414?
            },
            unitPrecision: 5, //小数位
            minPixelValue: 1, //转换的最小单位
            selectorBlackList: [], //忽略的样式, 正则 // vant样式忽略
            propList: ['*'], // 需要做转化处理的属性,如`hight`、`width`、`margin`等,`*`表示全部,正则
            // exclude 这个属性可以配置不需要转换的资源 直接写文件名就行,不需要后缀
        },
    },
}