docs: update the docs for a production bundle (fix #1035)

This commit is contained in:
Alexander Zhukov 2017-04-28 19:03:56 +03:00
parent ae7be20212
commit d86c064512
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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,