We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://stackblitz.com/edit/vitejs-vite-rdai5m?file=vite.config.js,package.json,index.html,package-lock.json,src%2Fmain.js&terminal=dev
4.8.4
css: { postcss: { plugins: [ postCssPxToRem({ rootValue({ file }) { return file.indexOf("vant") !== -1 ? 37.5 : 75; }, propList: ["*"], }), ], }, }, server: {
使用vite构建项目,全局引入,偶现转换错误
使用vite创建一个空白项目即可复现 node版本 18.19.0
No response
The text was updated successfully, but these errors were encountered:
这个问题和 Vant 无关,可以反馈给 postCssPxToRem or Vite
Sorry, something went wrong.
使用 "postcss-pxtorem": "^5.1.1" 降低 postcss-pxtorem 的版本可以解决,参考:cuth/postcss-pxtorem#87
No branches or pull requests
Reproduction Link
https://stackblitz.com/edit/vitejs-vite-rdai5m?file=vite.config.js,package.json,index.html,package-lock.json,src%2Fmain.js&terminal=dev
Vant Version
4.8.4
Describe the Bug
使用vite构建项目,全局引入,偶现转换错误
Reproduce Steps
使用vite创建一个空白项目即可复现
node版本
18.19.0
Device / Browser
No response
The text was updated successfully, but these errors were encountered: