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

Vite + Vant + PostCSS-pxtorem Configuration - Global CSS Variables Compiled to REM on Hot Reload #108

Open
tww1995826 opened this issue Aug 14, 2024 · 0 comments

Comments

@tww1995826
Copy link

I'm building a mobile project using Vite, Vant, and PostCSS-pxtorem. When I run npm run dev, the CSS units of Vant's global variables are compiled to rem. However, after a hot reload triggered by updating the Vite configuration, these units are no longer compiled. How can I resolve this issue?

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

1 participant