Skip to content

Commit 04f3fcb

Browse files
authored
docs(dll-plugin): add warning to dll-plugin. (#7187)
1 parent 2cd0425 commit 04f3fcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/plugins/dll-plugin.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ This plugin is used in a separate webpack configuration exclusively to create a
3333
new webpack.DllPlugin(options);
3434
```
3535

36+
W> When webpack output uses [code splitting](/guides/code-splitting), we should use [Template strings](/configuration/output/#template-strings) in `path` to ensure that webpack generates multiple manifest files.
37+
3638
W> We recommend using DllPlugin only with `entryOnly: true`, otherwise tree shaking in the DLL won't work as all the exports might be used.
3739

3840
Creates a `manifest.json` which is written to the given `path`. It contains mappings from require and import requests to module ids. It is used by the `DllReferencePlugin`.

0 commit comments

Comments
 (0)