Documentation
Development

Deployment

To deploy your application, you have to compile it, and then host the JavaScript, CSS, and HTML on a web server. Built Angular applications are very portable and can live in any environment or served by any technology, such as Node, Java, .NET, PHP, and many others.

To build your application for production, run the following command:

Alternate command

Alias for ng build.

If you are getting error messages that includes keywords like HEAP, JS stack tree, out of memory while trying to run ng build --prod or npm run build:prod commands, you may have an older Node.js version, try updating your Node.js to the latest LTS version and then try again.