Skip to content

Commit

Permalink
修改文档 (#10484)
Browse files Browse the repository at this point in the history
修改MultiPlatformPlugin的配置
  • Loading branch information
YuanQuan authored Oct 24, 2021
1 parent dc40ed3 commit 6c62778
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions versioned_docs/version-3.x/envs.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ mini: {
}
}
```
PS:3.3.5版本发现上述配置不管用,可以修改为如下配置:
```js title="/config/index.js"
// mini 也可改为 h5,分别对应小程序与 h5 端配置
mini: {
webpackChain (chain) {
chain.resolve.plugin('MultiPlatformPlugin')
.tap(args => {
args[2]["include"] = ['souge-taro-base']
return args
})
}
}
```
Taro 3 RN 端没有使用 webpack,所以不能跟其他端一致 ,这里需增加了一个配置支持:
```js title="/config/index.js"
rn: {
Expand Down

0 comments on commit 6c62778

Please sign in to comment.