From e6905e58ed4af61a8022066f0fcaba6ad793882a Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Thu, 15 Apr 2021 11:12:14 +0530 Subject: [PATCH 1/3] docs: add public path in entry descriptor --- src/content/concepts/entry-points.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/concepts/entry-points.md b/src/content/concepts/entry-points.md index dc2001c47228..1307446c48e3 100644 --- a/src/content/concepts/entry-points.md +++ b/src/content/concepts/entry-points.md @@ -10,6 +10,7 @@ contributors: - Zearin - chenxsan - adyjs + - anshumanv --- As mentioned in [Getting Started](/guides/getting-started/#using-a-configuration), there are multiple ways to define the `entry` property in your webpack configuration. We will show you the ways you **can** configure the `entry` property, in addition to explaining why it may be useful to you. @@ -83,6 +84,7 @@ An object with entry point description. You can specify the following properties - `import`: Module(s) that are loaded upon startup. - `library`: Specify [library options](/configuration/output/#outputlibrary) to bundle a library from current entry. - `runtime`: The name of the runtime chunk. If set, a runtime chunk with this name is created otherwise an existing entry point is used as runtime. +- `publicPath`: Specifies the public URL address of the output files when referenced in a browser for this entry. Also see [output.publicPath](/configuration/output/#outputpublicpath). **webpack.config.js** From 20f9553aa3bff10a275902c8d8914488553076a3 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Thu, 15 Apr 2021 11:13:57 +0530 Subject: [PATCH 2/3] docs: add public path in entry descriptor --- src/content/concepts/entry-points.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/concepts/entry-points.md b/src/content/concepts/entry-points.md index 1307446c48e3..8fb85bba9ee4 100644 --- a/src/content/concepts/entry-points.md +++ b/src/content/concepts/entry-points.md @@ -84,7 +84,7 @@ An object with entry point description. You can specify the following properties - `import`: Module(s) that are loaded upon startup. - `library`: Specify [library options](/configuration/output/#outputlibrary) to bundle a library from current entry. - `runtime`: The name of the runtime chunk. If set, a runtime chunk with this name is created otherwise an existing entry point is used as runtime. -- `publicPath`: Specifies the public URL address of the output files when referenced in a browser for this entry. Also see [output.publicPath](/configuration/output/#outputpublicpath). +- `publicPath`: Specify base path for assets for this entry. Also see [output.publicPath](/configuration/output/#outputpublicpath). **webpack.config.js** From 15ed3b5bc3680f95497f33eb2946176f12a48522 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Sat, 17 Apr 2021 20:17:29 +0530 Subject: [PATCH 3/3] Update src/content/concepts/entry-points.md Co-authored-by: Sam Chen --- src/content/concepts/entry-points.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/concepts/entry-points.md b/src/content/concepts/entry-points.md index 8fb85bba9ee4..0d1fa3a82c81 100644 --- a/src/content/concepts/entry-points.md +++ b/src/content/concepts/entry-points.md @@ -84,7 +84,7 @@ An object with entry point description. You can specify the following properties - `import`: Module(s) that are loaded upon startup. - `library`: Specify [library options](/configuration/output/#outputlibrary) to bundle a library from current entry. - `runtime`: The name of the runtime chunk. If set, a runtime chunk with this name is created otherwise an existing entry point is used as runtime. -- `publicPath`: Specify base path for assets for this entry. Also see [output.publicPath](/configuration/output/#outputpublicpath). +- `publicPath`: Specify a public URL address for the output files of this entry when they are referenced in a browser. Also see [output.publicPath](/configuration/output/#outputpublicpath). **webpack.config.js**