Skip to content

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

@tww1995826

Description

@tww1995826

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions