fix(aio): add missing code snippet (#18547)

The snippet got lost some time during the migration from the old version (it is
[present in v2][1]).

[1]: https://v2.angular.io/docs/ts/latest/cookbook/aot-compiler.html#!#running-the-application

Fixes #18544
This commit is contained in:
George Kalpakas 2017-08-10 00:20:25 +03:00 committed by Victor Berchet
parent b14250bef9
commit fd6ae571b8
1 changed files with 5 additions and 0 deletions

View File

@ -528,6 +528,11 @@ Compiling with AOT presupposes certain supporting files, most of them discussed
Extend the `scripts` section of the `package.json` with these npm scripts:
<code-example language="json">
"build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js",
"serve:aot": "lite-server -c bs-config.aot.json",
</code-example>
Copy the AOT distribution files into the `/aot` folder with the node script:
<code-example language="none" class="code-shell">