From 4d81116b6ff0a96bc10e06569b6af0dfb7a00226 Mon Sep 17 00:00:00 2001 From: cengiz ilhan Date: Thu, 25 Jul 2024 23:44:33 +0300 Subject: [PATCH] Update entry-context.mdx multiple js config entry added --- src/content/configuration/entry-context.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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