From d86c0645122096234aafbc5d57711c07d90a764f Mon Sep 17 00:00:00 2001 From: Alexander Zhukov Date: Fri, 28 Apr 2017 19:03:56 +0300 Subject: [PATCH] docs: update the docs for a production bundle (fix #1035) --- .../articles/002-installation-guidelines/index.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/contents/articles/002-installation-guidelines/index.md b/docs/contents/articles/002-installation-guidelines/index.md index 6e9a7dec..736f1688 100644 --- a/docs/contents/articles/002-installation-guidelines/index.md +++ b/docs/contents/articles/002-installation-guidelines/index.md @@ -60,6 +60,16 @@ or in AOT mode npm run start:prod:aot ``` +To create a bundle in production mode, execute: + +```bash +npm run build:prod +``` +or +```bash +npm run build:prod:aot +``` + This will clear up your dist folder (where release files are located), generate a release build and start the built-in server. Now you can copy the sources from the `dist` folder and use it with any backend framework or diff --git a/package.json b/package.json index 12b9ea62..371d417e 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "e2e": "ng e2e", "clean:dist": "npm run rimraf -- dist", "clean:coverage": "npm run rimraf -- coverage", - "gh-pages": "wintersmith build -C docs && gh-pages -d docs/build", + "docs:deploy": "wintersmith build -C docs && gh-pages -d docs/build", "docs:serve": "wintersmith preview -C docs" }, "private": true,