Deployment Preparation with webpack Bundling

We want to deploy our app to the two leading mobile app stores, Apple App Store and Google Play; however, there are several things that we need to do to prepare our app for distribution.

To ensure that you use the smallest JavaScript size in addition to Angular's AoT compiler to help our app execute as fast as possible, we will use webpack to bundle everything. It's worth noting that webpack is not a requirement to create a distributable NativeScript app. However, it provides very nice benefits that should make it an important step for anyone when distributing their apps.

In this chapter, we will cover the following topics:

  • Installing webpack for a NativeScript for Angular project
  • Preparing a ...

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.