You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(concepts) entry points concepts typing according to styleguide; … (#3301)
* dpcs(concepts) entry points concepts typing according to styleguide; rework single entry list into continuation of paragraph
* Update src/content/concepts/entry-points.md
* Update src/content/concepts/entry-points.md
@@ -68,7 +68,7 @@ Below is a list of entry configurations and their real-world use cases:
68
68
69
69
### Separate App and Vendor Entries
70
70
71
-
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` 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.
71
+
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.
72
72
73
73
### Multi Page Application
74
74
@@ -86,8 +86,6 @@ module.exports = {
86
86
87
87
__What does this do?__ We are telling webpack that we would like 3 separate dependency graphs (like the above example).
88
88
89
-
__Why?__ In a multi-page application, the server is going to fetch a new HTML document for you. The page reloads this new document and assets are redownloaded. However, this gives us the unique opportunity to do multiple things:
90
-
91
-
- Use `optimization.splitChunks` to create bundles of shared application code between each page. Multi-page applications that reuse a lot of code/modules between entry points can greatly benefit from these techniques, as the number of entry points increases.
89
+
__Why?__ In a multi-page application, the server is going to fetch a new HTML document for you. The page reloads this new document and assets are redownloaded. However, this gives us the unique opportunity to do things like using [`optimization.splitChunks`](/configuration/optimization/#optimizationsplitchunks) to create bundles of shared application code between each page. Multi-page applications that reuse a lot of code/modules between entry points can greatly benefit from these techniques, as the number of entry points increases.
92
90
93
91
T> As a rule of thumb: Use exactly one entry point for each HTML document.
0 commit comments