From fd6ae571b8180835ba936f6125f184057e9ab498 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 10 Aug 2017 00:20:25 +0300 Subject: [PATCH] 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 --- aio/content/guide/aot-compiler.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index b48baf59b6..a5ddc8315f 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -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: + + "build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js", + "serve:aot": "lite-server -c bs-config.aot.json", + + Copy the AOT distribution files into the `/aot` folder with the node script: