diff --git a/src/content/configuration/entry-context.mdx b/src/content/configuration/entry-context.mdx index 18e4187c7734..483387e58ad7 100644 --- a/src/content/configuration/entry-context.mdx +++ b/src/content/configuration/entry-context.mdx @@ -1,3 +1,4 @@ + --- title: Entry and Context sort: 4 @@ -175,6 +176,19 @@ module.exports = { For example: you can use dynamic entries to get the actual entries from an external source (remote server, file system content or database): +### 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: +``` + +module.exports = { + //... + entry: { + '/scriptFolder/index.min': '../Static/index.js', + '/scriptFolder/js/another.min': '../Static/js/another.js', + }, +}; +``` + **webpack.config.js** ```js