From f060d1a813aa5ee2fe23b85f808e895aa3a6be83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=95=87=E9=9D=93=E4=BB=94?= Date: Thu, 18 Aug 2022 15:01:45 +0800 Subject: [PATCH] docs: add tips in advanced-usage.zh-CN.md (#10927) * docs: add tips in advanced-usage.zh-CN.md * Update advanced-usage.zh-CN.md Co-authored-by: neverland --- packages/vant/docs/markdown/advanced-usage.zh-CN.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vant/docs/markdown/advanced-usage.zh-CN.md b/packages/vant/docs/markdown/advanced-usage.zh-CN.md index 1e1b1b551..4d8d04cf3 100644 --- a/packages/vant/docs/markdown/advanced-usage.zh-CN.md +++ b/packages/vant/docs/markdown/advanced-usage.zh-CN.md @@ -172,6 +172,8 @@ module.exports = { }; ``` +> Tips: 在配置 postcss-pxtorem 时,同样应避免 ignore node_modules 目录,否则会导致 Vant 样式无法被编译。 + #### 其他设计稿尺寸 如果设计稿的尺寸不是 375,而是 750 或其他大小,可以将 `rootValue` 配置调整为: