Skip to content

No vendor chunk when Wiki says vendor chunk is true by default - CLI 1.5.3 #8586

@Swellenator

Description

@Swellenator

Versions

Angular CLI: 1.5.3
Node: 8.4.0
OS: win32 x64
Angular: 5.0.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cli: 1.5.3
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.36
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.3
@schematics/angular: 0.1.5
typescript: 2.6.1
webpack: 3.8.1

Repro steps

ng build --prod
Hash: 6089f98c9d995de864aa
Time: 176725ms
chunk {0} main.34c2fb4b05da249393db.bundle.js (main) 3.97 MB [initial] [rendered]
chunk {1} styles.f1b5f293ba4b13abcdbb.bundle.css (styles) 618 kB [initial] [rendered]
chunk {2} inline.48dff7d85670862c6bca.bundle.js (inline) 1.43 kB [entry] [rendered]

Desired behavior

The wiki says

vendor-chunk
--vendor-chunk (aliases: -vc) default value: true
Use a separate bundle containing only vendor libraries.

Yet there is no vendor bundle. Did this change? Is the documentation out of date? Why did it change? Is there some guidance one way or another as to why we should have a vendor chunk or not?

I can see that it would be useful for caching (assuming it gets the same hash if the content doesn't change)? Is there any benefit in splitting and having two parallel requests?

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions