The rootvalue function is not valid
Opened this issue · 4 comments
caicailv commented
When I used version 6.0.0, an error occurred,
In the vite + Vue framework, I want to use two different proportions for the UI framework
But in the end, all the documents used the ratio of 50
This problem was resolved when I tried to switch to version 5.1.1
postCssPxToRem({ rootValue({ file }) { let num = file.includes('vant') ? 50 : 100 return num }, propList: ['*'], }),
hemengke1997 commented
any reproduction?
hemengke1997 commented
maybe you could try https://github.com/hemengke1997/postcss-pxtorem
liejiayong commented
Is there any solution?
hemengke1997 commented
Is there any solution?
yep! You can try this https://github.com/hemengke1997/postcss-pxtorem and let me know if you have any problems