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:
parent
b14250bef9
commit
fd6ae571b8
|
@ -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:
|
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:
|
Copy the AOT distribution files into the `/aot` folder with the node script:
|
||||||
|
|
||||||
<code-example language="none" class="code-shell">
|
<code-example language="none" class="code-shell">
|
||||||
|
|
Loading…
Reference in New Issue