Skip to content
New issue

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

修改文档 #10484

Merged
merged 1 commit into from
Oct 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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