@@ -83,13 +83,20 @@ Flag | `--dev` | `--prod`
83
83
` --named-chunks ` | ` true ` | ` false `
84
84
` --build-optimizer ` | ` false ` | ` true ` with AOT and Angular 5
85
85
86
- ` --extract-licenses ` Extract all licenses in a separate file, in the case of production builds only.
87
- ` --i18n-file ` Localization file to use for i18n.
88
86
` --prod ` also sets the following non-flaggable settings:
89
87
- Adds service worker if configured in ` .angular-cli.json ` .
90
88
- Replaces ` process.env.NODE_ENV ` in modules with the ` production ` value (this is needed for some libraries, like react).
91
89
- Runs UglifyJS on the code.
92
90
91
+ ### ` --build-optimizer ` and ` --vendor-chunk `
92
+
93
+ When using Build Optimizer the vendor chunk will be disabled by default.
94
+ You can override this with ` --vendor-chunk=true ` .
95
+
96
+ Total bundle sizes with Build Optimizer are smaller if there is no separate vendor chunk because
97
+ having vendor code in the same chunk as app code makes it possible for Uglify to remove more unused
98
+ code.
99
+
93
100
### CSS resources
94
101
95
102
Resources in CSS, such as images and fonts, will be copied over automatically as part of a build.
@@ -377,3 +384,14 @@ Note: service worker support is experimental and subject to change.
377
384
In a server build, state whether `all` or `none` dependencies should be bundles in the output.
378
385
</p >
379
386
</details >
387
+
388
+
389
+ <details >
390
+ <summary >extract-licenses</summary >
391
+ <p >
392
+ <code>--extract-licenses</code> <em>default value: true</<em>
393
+ </p >
394
+ <p >
395
+ Extract all licenses in a separate file, in the case of production builds only.
396
+ </p >
397
+ </details >
0 commit comments