Skip to content
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

Unclear why splitChunks.name set false #6240

Closed
kwzm opened this issue Jan 21, 2019 · 3 comments
Closed

Unclear why splitChunks.name set false #6240

kwzm opened this issue Jan 21, 2019 · 3 comments
Labels

Comments

@kwzm
Copy link

kwzm commented Jan 21, 2019

Is this a bug report?

Not a bug report.

I find these configs in webpack.config.prod.js

default

The splitChuns.name is false, this seems lead to the vendor chunk name become to something like this:
default
rather than vender~main.xxxxxx.chunk.js

So, I am confused why set name to false.

@TLadd
Copy link

TLadd commented Jan 21, 2019

The medium article in the comment above the splitChunks setting offers some explanation:

Note: Since the chunk name includes all origin chunk names it’s recommended for production builds with long term caching to NOT include [name] in the filenames, or switch off name generation via optimization.splitChunks.name: false. Elsewise files will invalidate i. e. when more chunks with the same vendors are added.

@miraage
Copy link

miraage commented Jan 25, 2019

You don't need to know why this option has a certain value.
As CRA user, you don't even need to know what happens after the hood.
If you still need some advanced configuration, then you know all this option.

@stale
Copy link

stale bot commented Feb 24, 2019

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Feb 24, 2019
@lock lock bot locked and limited conversation to collaborators Mar 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants