cuth/postcss-pxtorem

vite+scss+vant rootValue not match file

Opened this issue · 0 comments

module.exports = {
    plugins: {
        'postcss-pxtorem': {
            rootValue({ file }) {
				console.log(file, file.includes('node_modules/vant'))
                return file.includes('node_modules/vant') ? 37.5 : 75;
            },
            propList: ['*'],
        },
    },
}
image image image image image image