From 19dbf87e763256d27a5c12c1b34c6ffc88022c12 Mon Sep 17 00:00:00 2001 From: cengiz ilhan Date: Mon, 16 Sep 2024 17:26:59 +0300 Subject: [PATCH] Update entry-context.mdx multiple js config entry added the technical document in which you wanted to determine the input and output names of different files was not included. That's why I added this. --- src/content/configuration/entry-context.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/content/configuration/entry-context.mdx b/src/content/configuration/entry-context.mdx index 18e4187c7734..8275b1170166 100644 --- a/src/content/configuration/entry-context.mdx +++ b/src/content/configuration/entry-context.mdx @@ -175,6 +175,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: { + './js/one': './js/one.js/, + './js/two': './js/two.js/ + }, +}; +``` + + **webpack.config.js** ```js