Skip to content

Commit a753735

Browse files
authored
Update getpublicpath.mdx (#3806)
1 parent 89536ac commit a753735

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/website-new/docs/en/configure/getpublicpath.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ In the example below, `getPublicPath` is set. When other consumers load this pro
1313
```getPublicPath``` Must be a function as a string.
1414
:::
1515

16+
:::tip NOTE
17+
If you're using module federation webpack plugin and want to set a dynamic publicPath, you should set `__webpack_public_path__ = window.cdn_prefix` statement in `getPublicPath` function body.
18+
:::
19+
1620
```ts title="rspack.config.ts"
1721
module.exports = {
1822
plugins: [

0 commit comments

Comments
 (0)