Skip to content

docs(development): Mention runtimeChunk: single for multi-endpoint dev server #6098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

f3ndot
Copy link
Contributor

@f3ndot f3ndot commented Apr 15, 2022

This section of the guide introduces the concept of a dev server for the first time, but has not introduced the concept that multiple endpoints on a single html file served by the webserver is problematic without optimization.runtimeChunk: 'single'.

This commit attempts to give new developers a softer landing, and references the Code Splitting section to more deeply understand as well as link to the same pitfall external resource as the Code Splitting section does.

See webpack/webpack#14873 (comment) for rationale

This section of the guide introduces the concept of a dev server for the first time, but has not introduced the concept that multiple endpoints on a single html file served by the webserver is problematic without `optimization.runtimeChunk: 'single'`.

This commit attempts to give new developers a softer landing, and references the Code Splitting section to more deeply understand as well as link to the same pitfall external resource as the Code Splitting section does.

See webpack/webpack#14873 (comment) for rationale
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 15, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: f3ndot / name: Justin Bull (98f314a)

@vercel
Copy link

vercel bot commented Apr 15, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/C4BXwd3isVYxY7hZ3F6Mf2R3JtiS
✅ Preview: https://webpack-js-org-git-fork-f3ndot-patch-1-webpack-docs.vercel.app

@f3ndot
Copy link
Contributor Author

f3ndot commented Apr 15, 2022

Couldn't decide if this should be another Tip blockquote, or just a regular paragraph

Copy link
Member

@chenxsan chenxsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks.

@chenxsan chenxsan merged commit 2368346 into webpack:master Apr 20, 2022
@f3ndot f3ndot deleted the patch-1 branch April 20, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants