Angular 5 App Deployment

Previously:

 

Now in this part we will be discussing about Angular 5 Build and deployment:

  • Let us create a build
    • $ ng build
  • after it executes (might 5 to 15 min) you can see a folder /dist
  • In my build the file with total size is 7.11 MB with max file size 3,742 KB
  • build
  • This can’t be used for production as still file size is large
  • To produce a production build let us use this command (it will automatically delete content in /dist folder to replace with new files for production)
    • ng build –prod
  • It will take longer than previous execution as more steps takes place internally than previous one
  • after it executes you can see a folder /dist
  • In my build the file with total size is 345 KB with max file size 277 KB
  • build prod
  • See the file size total has a very large difference
  • Now this build is great for production and can be directly deployed on the server.

Hope you enjoyed the way Angular 5 presents you the way to build an application. Please share your thoughts.

Advertisements

3 thoughts on “Angular 5 App Deployment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s