Skip to content

Commit

Permalink
Update docs/docs/docs/max/mf.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m authored Oct 9, 2023
1 parent c3dd2a6 commit f9447b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/docs/docs/max/mf.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,14 @@ src/exposes/
}
```

### 关闭MF产物Hash
默认情况下,当用户开启 hash: true 时, MF 产物中入口文件将自动携带 hash ,如 remote.123abc.js ,可通过设定 mf.remoteHash: false 关闭(将得到 remote.js ),此时你可能需要修改 nginx / CDN / 网关 的响应头配置来去除该 remote.js 文件的缓存,否则新构建将无法生效。
```js
### 关闭 MF 产物 hash

默认情况下,当用户开启 `hash: true` 时, MF 产物中入口文件将自动携带 hash ,如 `remote.123abc.js` ,可通过设定 `remoteHash: false` 关闭(将得到 `remote.js` ),此时你可能需要修改 nginx / CDN / 网关 的响应头配置来去除该 `remote.js` 文件的缓存,否则新构建将无法生效。

```ts
mf: {
remoteHash: false
}
```

## 运行时 API

Expand Down

0 comments on commit f9447b4

Please sign in to comment.