Skip to content

Commit 3506bd2

Browse files
mikeumusZhicheng Wang
authored and
Zhicheng Wang
committed
docs: add features of Angular-CLI/webpack
Close angular#2851
1 parent 7fd3ca5 commit 3506bd2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/@ngtools/webpack/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,16 @@ The loader works with the webpack plugin to compile your TypeScript. It's import
3737
* `mainPath`. Optional if `entryModule` is specified. The `main.ts` file containing the bootstrap code. The plugin will use AST to determine the `entryModule`.
3838
* `skipCodeGeneration`. Optional, defaults to false. Disable code generation and do not refactor the code to bootstrap. This replaces `templateUrl: "string"` with `template: require("string")` (and similar for styles) to allow for webpack to properly link the resources.
3939
* `typeChecking`. Optional, defaults to true. Enable type checking through your application. This will slow down compilation, but show syntactic and semantic errors in webpack.
40+
41+
## Features
42+
The benefits and ability of using [`@ngtools/webpack`](https://www.npmjs.com/~ngtools) standalone from the Angular CLI as presented in [Stephen Fluin's Angular CLI talk](https://youtu.be/uBRK6cTr4Vk?t=6m45s) at Angular Connect 2016:
43+
44+
* Compiles SCSS/LESS
45+
* TypeScript transpilation
46+
* Bundles JavaScript, CSS
47+
* Asset optimiation
48+
* Virtual filesystem for assets
49+
* For serving local assets and compile versions.
50+
* Live-reload via websockets
51+
* Code splitting
52+
* Recognizing the use of `loadChildren` in the router, and bundling those modules separately so that any dependencies of those modules are not going to be loaded as part of your main bundle. These separate bundles will be pulled out of the critical path of your application, making your total application bundle much smaller and loading it much more performant.

0 commit comments

Comments
 (0)