Skip to content

Commit 4d81116

Browse files
authored
Update entry-context.mdx
multiple js config entry added
1 parent c44071d commit 4d81116

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/content/configuration/entry-context.mdx

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
---
23
title: Entry and Context
34
sort: 4
@@ -175,6 +176,19 @@ module.exports = {
175176

176177
For example: you can use dynamic entries to get the actual entries from an external source (remote server, file system content or database):
177178

179+
### Multiple Entry Points in Different Folders
180+
In some scenarios, you might want to organize your entry points into different folders for better structure and maintainability. Here's how you can define multiple entry points located in different folders:
181+
```
182+
183+
module.exports = {
184+
//...
185+
entry: {
186+
'/scriptFolder/index.min': '../Static/index.js',
187+
'/scriptFolder/js/another.min': '../Static/js/another.js',
188+
},
189+
};
190+
```
191+
178192
**webpack.config.js**
179193

180194
```js

0 commit comments

Comments
 (0)