postcss-pxtorem icon indicating copy to clipboard operation
postcss-pxtorem copied to clipboard

vite+scss+vant rootValue not match file

Open ixqbar opened this issue 1 year ago • 2 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

ixqbar avatar Sep 12 '24 04:09 ixqbar

same issues

XionGuo37 avatar Feb 24 '25 03:02 XionGuo37

same issues

改用 @minko-fe/postcss-pxtorem

ixqbar avatar Feb 26 '25 06:02 ixqbar