From 73979e3f5bc5a874b585fae1e827c663f834bb89 Mon Sep 17 00:00:00 2001 From: Kuitos Date: Thu, 15 Oct 2020 15:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20typo=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/faq/README.md | 10 +++++----- docs/faq/README.zh.md | 11 ++++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/faq/README.md b/docs/faq/README.md index 9860f5f..c19e32c 100644 --- a/docs/faq/README.md +++ b/docs/faq/README.md @@ -345,12 +345,12 @@ Example for antd: ```diff { loader: 'less-loader', - + options: { - + modifyVars: { - + '@ant-prefix': 'yourPrefix', - + }, - + javascriptEnabled: true, + + options: { + + modifyVars: { + + '@ant-prefix': 'yourPrefix', + }, + + javascriptEnabled: true, + + }, } ``` diff --git a/docs/faq/README.zh.md b/docs/faq/README.zh.md index 64e6785..39440d3 100644 --- a/docs/faq/README.zh.md +++ b/docs/faq/README.zh.md @@ -406,17 +406,18 @@ start({ qiankun 将会自动隔离微应用之间的样式(开启沙箱的情况下),你可以通过手动的方式确保主应用与微应用之间的样式隔离。比如给主应用的所有样式添加一个前缀,或者假如你使用了 [ant-design](https://ant.design) 这样的组件库,你可以通过[这篇文档](https://ant.design/docs/react/customize-theme)中的配置方式给主应用样式自动添加指定的前缀。 以 antd 为例: + 1. 配置 webpack 修改 less 变量 ```diff { loader: 'less-loader', - + options: { - + modifyVars: { - + '@ant-prefix': 'yourPrefix', - + }, - + javascriptEnabled: true, + + options: { + + modifyVars: { + + '@ant-prefix': 'yourPrefix', + }, + + javascriptEnabled: true, + + }, } ```