Now is the time to deploy our application, but before we do this, we need to compress and minify our Aurelia code. Aurelia CLI provides us with the build option to generate these ready-to-deploy files that contain all our application code.
As you might want to build your application for different environments (dev, stage, or prod), this build option comes along with the --env flag. For example, execute the following command in your project:
au build --env prod
The following is a sample output of my-app project:
As the output shows, there are two main files generated: app-bundle.js, which contains our application logic ...