You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/configuration/entry-context.md
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ contributors:
10
10
- EugeneHlushko
11
11
- smelukov
12
12
- anshumanv
13
+
- snitin315
13
14
---
14
15
15
16
The entry object is where webpack looks to start building the bundle. The context is an absolute string to the directory that contains the entry files.
@@ -109,7 +110,7 @@ Descriptor syntax was used here to pass `filename`-option to the specific entry
109
110
110
111
### Dependencies
111
112
112
-
By default, every entry chunk stores all the modules that it uses. With `dependOn`-option you can share the modules from one entry chunk to another:
113
+
By default, every entry chunk stores all the modules that it uses. With `dependOn`option you can share the modules from one entry chunk to another:
113
114
114
115
```js
115
116
module.exports= {
@@ -123,7 +124,23 @@ module.exports = {
123
124
124
125
The `app` chunk will not contain the modules that `react-vendors` has.
125
126
126
-
Also you can specify multiple files per entry using array:
127
+
`dependOn` option can also accept an array of strings:
0 commit comments