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 project to be bundled with webpack
- Solving various webpack bundling issues
- A primer on writing your own custom webpack plugin to solve...