Skip to content

Commit 53436b1

Browse files
authored
Add a section on naming
This tripped me up when I was working on making a project use vendor chunking when it previously used an array of strings as the value for the `entry` key. It wasn't clear which key that array should move to in the object syntax.
1 parent de47803 commit 53436b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/configuration/entry-context.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ entry: {
4141
}
4242
```
4343

44-
Dynamically entry.
44+
### Naming
45+
If a string or array of strings is passed, the chunk is named `main`. If an object is passed, each key is the name of a chunk, and the value describes the entrypoint for the chunk.
46+
47+
### Dynamic entry
4548

4649
```js
4750
entry: () => './demo'

0 commit comments

Comments
 (0)