cuth / cuth/postcss-pxtorem

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

Open
#108 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.