Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/content/configuration/entry-context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ contributors:
- anshumanv
- snitin315
- hai-x
- cengizilhan
---

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.
Expand Down Expand Up @@ -173,6 +174,19 @@ module.exports = {
};
```

### Multiple Entry Points in Different Folders

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:

```javascript
module.exports = {
entry: {
'/scriptFolder/one/app': './src/one/app.js',
'/scriptFolder/two/main': './src/two/main.js',
},
};
```

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

**webpack.config.js**
Expand Down
Loading