Skip to content

Commit 99dcffb

Browse files
authored
Update EntryPoint
Corrected Grammatical Errors.
1 parent 1205197 commit 99dcffb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/content/concepts/entry-points.mdx

+6-5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ contributors:
1111
- chenxsan
1212
- adyjs
1313
- anshumanv
14+
- ritikbanger
1415
---
1516

1617
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.
@@ -52,7 +53,7 @@ module.exports = {
5253
};
5354
```
5455

55-
Single Entry Syntax is a great choice when you are looking to quickly setup a webpack configuration for an application or tool with one entry point (i.e. a library). However, there is not much flexibility in extending or scaling your configuration with this syntax.
56+
Single Entry Syntax is a great choice when you are looking to quickly set up a webpack configuration for an application or tool with one entry point (i.e. a library). However, there is not much flexibility in extending or scaling your configuration with this syntax.
5657

5758
## Object Syntax
5859

@@ -77,15 +78,15 @@ T> You can pass empty object `{}` to `entry` when you have only entry points gen
7778

7879
### EntryDescription object
7980

80-
An object with entry point description. You can specify the following properties.
81+
An object with an entry point description. You can specify the following properties.
8182

8283
- `dependOn`: The entry points that the current entry point depends on. They must be loaded before this entry point is loaded.
8384
- `filename`: Specifies the name of each output file on disk.
8485
- `import`: Module(s) that are loaded upon startup.
8586
- `library`: Specify [library options](/configuration/output/#outputlibrary) to bundle a library from current entry.
8687
- `runtime`: The name of the runtime chunk. When set, a new runtime chunk will be created. It can be set to `false` to avoid a new runtime chunk since webpack 5.43.0.
8788

88-
- `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).
89+
- `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).
8990

9091
**webpack.config.js**
9192

@@ -188,11 +189,11 @@ module.exports = {
188189

189190
**What does this do?** We are telling webpack that we would like 2 separate entry points (like the above example).
190191

191-
**Why?** With this you can import required libraries or files that aren't modified (e.g. Bootstrap, jQuery, images, etc) inside `vendor.js` and they will be bundled together into their own chunk. Content hash remains the same, which allows the browser to cache them separately thereby reducing load time.
192+
**Why?** With this, you can import required libraries or files that aren't modified (e.g. Bootstrap, jQuery, images, etc) inside `vendor.js` and they will be bundled together into their own chunk. Content hash remains the same, which allows the browser to cache them separately thereby reducing load time.
192193

193194
T> In webpack version < 4 it was common to add vendors as a separate entry point to compile it as a separate file (in combination with the `CommonsChunkPlugin`). <br /><br /> This is discouraged in webpack 4. Instead, the [`optimization.splitChunks`](/configuration/optimization/#optimizationsplitchunks) option takes care of separating vendors and app modules and creating a separate file. **Do not** create an entry for vendors or other stuff that is not the starting point of execution.
194195

195-
### Multi Page Application
196+
### Multi-Page Application
196197

197198
**webpack.config.js**
198199

0 commit comments

Comments
 (0)