Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The rootvalue function is not valid #83

Open
caicailv opened this issue May 19, 2022 · 4 comments
Open

The rootvalue function is not valid #83

caicailv opened this issue May 19, 2022 · 4 comments

Comments

@caicailv
Copy link

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
Copy link

any reproduction?

@hemengke1997
Copy link

maybe you could try https://github.com/hemengke1997/postcss-pxtorem

@liejiayong
Copy link

Is there any solution?

@hemengke1997
Copy link

Is there any solution?

yep! You can try this https://github.com/hemengke1997/postcss-pxtorem and let me know if you have any problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants