docs: add note to build Angular locally (#31053)

I got the compiled failed error when I followed the tutorial, which should be informed in advance as there are people who might not know the dependency in the package.json if they have no former relevant experience.

PR Close #31053
This commit is contained in:
Benjamin Liii 2019-06-14 13:19:28 +08:00 committed by Miško Hevery
parent 25af147a8c
commit 4b30108734
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ ng build --prod
This will produce the files that you need to deploy. This will produce the files that you need to deploy.
<div class="alert is-helpful">
If the above `ng build` command throws an error about missing packages, append the missing dependencies in your local project's `package.json` file to match the one in the downloaded StackBlitz project.
</div>
#### Hosting the built project #### Hosting the built project
The files in the `dist/my-project-name` folder are static and can be hosted on any web server capable of serving files (`Node.js`, Java, .NET) or any backend (Firebase, Google Cloud, App Engine, others). The files in the `dist/my-project-name` folder are static and can be hosted on any web server capable of serving files (`Node.js`, Java, .NET) or any backend (Firebase, Google Cloud, App Engine, others).