Vite + Vant + PostCSS-pxtorem Configuration - Global CSS Variables Compiled to REM on Hot Reload
Open
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 173
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.