📝 typo doc
This commit is contained in:
parent
1564131771
commit
73979e3f5b
|
|
@ -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,
|
||||
+ },
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
+ },
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user